/* ============================================================
   castletrader.co.za — design system
   Playful-but-trustworthy marketplace. Mobile-first.
   ============================================================ */

/* ---- Self-hosted fonts (replaces render-blocking Google Fonts) ---- */
/* latin-ext */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWg89XyHw.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;
}

/* latin */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWu89U.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWg89XyHw.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;
}

/* latin */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/X7n64b87HvSqjb_WIi2yDCRwoQ_k7367_DWu89U.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ijwRs572Xtc6ZYQws9YVwnNIfJ7Cww.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;
}

/* latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/ijwRs572Xtc6ZYQws9YVwnNGfJ4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/ijwRs572Xtc6ZYQws9YVwnNIfJ7Cww.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;
}

/* latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/ijwRs572Xtc6ZYQws9YVwnNGfJ4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/ijwRs572Xtc6ZYQws9YVwnNIfJ7Cww.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;
}

/* latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/ijwRs572Xtc6ZYQws9YVwnNGfJ4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --blue: #1874C9;         /* CastleTrader logo azure */
  --blue-dark: #135FA6;
  --yellow: #FDCF17;       /* logo castle yellow */
  --yellow-dark: #E3B200;
  --ink: #22303F;
  --ink-soft: #55636F;
  --bg: #F4F7FB;
  --card: #FFFFFF;
  --sold: #F0473D;         /* logo castle red */
  --whatsapp: #25D366;
  --green: #4FA82E;        /* Chameleon Inflatables cue colour (partner surfaces only) */
  --green-dark: #3C8A24;
  --good: #1C874B;         /* status green for good/working/ok — kept distinct from the Chameleon cue */
  --line: #E1E8F0;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 2px 10px rgba(34, 48, 63, 0.08);
  --shadow-lift: 0 6px 22px rgba(34, 48, 63, 0.13);
  --font-display: "Fredoka", "Public Sans", sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; }
h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--yellow-dark); box-shadow: var(--shadow-lift); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); padding: 9px 18px; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { filter: brightness(0.92); }
.btn-danger { background: var(--sold); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-sm { padding: 7px 14px; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; }
.head-bar { background: #fff; border-bottom: 1px solid var(--line); }
.head-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; min-width: 0; }
.brand-logo-img { display: block; height: 40px; width: auto; }
.brand-icon { width: 34px; height: 34px; flex: none; }
.brand-text {
  font-family: var(--font-display); font-weight: 600; font-size: 1.22rem;
  color: #fff; white-space: nowrap;
}
.brand-text em { font-style: normal; color: var(--yellow); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn-sell { flex: none; padding: 9px 16px; font-size: 0.92rem; background: var(--yellow); color: var(--ink); }
.btn-sell:hover { background: var(--yellow-dark); color: var(--ink); }
.btn-sell-alt { flex: none; padding: 8px 15px; font-size: 0.92rem; background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-sell-alt:hover { background: var(--blue); color: #fff; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.site-nav { background: var(--blue-dark); }
.nav-scroll {
  display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 6px; scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a {
  position: relative;
  color: #D8E4F7; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.nav-scroll a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.nav-scroll a.is-current { color: #fff; background: rgba(255, 255, 255, 0.12); }

/* ---------- Flash messages ---------- */
.flash {
  margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.flash-success { background: #E4F6E8; color: #1D6B33; border: 1px solid #B8E4C3; }
.flash-error { background: #FCE9E7; color: #A33327; border: 1px solid #F3C4BE; }

/* ---------- Hero ---------- */
.hero { background: var(--blue); color: #fff; padding: 34px 0 42px; margin-top: 0; border-bottom: 4px solid var(--yellow); }
.hero .container { text-align: center; }
.hero h1 { color: #fff; font-size: 2rem; margin-bottom: 0.3em; }
.hero p { color: #D8E4F7; max-width: 560px; margin: 0 auto 1.4em; }

/* ---------- Search bar ---------- */
.search-bar {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lift);
  padding: 14px; display: grid; gap: 10px; text-align: left;
}
.search-bar input[type="text"], .search-bar select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff;
}
.search-bar input:focus, .search-bar select:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); }

/* ---------- Cards grid ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.section-head h2 { margin: 0; position: relative; padding-left: 14px; }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 0.16em; bottom: 0.16em; width: 5px;
  background: var(--blue); border-radius: 3px;
}
.section-head a { font-weight: 700; font-size: 0.92rem; white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 0;
  overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease; position: relative;
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.chameleon-tile { border: 10px solid var(--green-dark); }
.card-img { display: block; aspect-ratio: 1 / 1; background: #E8EEF6 center / cover no-repeat; position: relative; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-img .no-photo {
  display: flex; align-items: center; justify-content: center; height: 100%;
  color: #A9BAD1; font-size: 2rem;
}
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-title { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.card-price { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--blue); }
.card-meta { font-size: 0.82rem; color: var(--ink-soft); margin-top: auto; }
/* "View details" pill (only the pill, photo and title are clickable — not the whole card) */
.card-pill { align-self: flex-start; margin-top: 10px; }
a.card-title { text-decoration: none; color: inherit; }
a.card-title:hover { color: var(--blue); }

.badge-sold {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--sold); color: #fff; font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.badge-cat {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  background: rgba(34, 48, 63, 0.78); color: #fff; font-size: 0.75rem; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
}

/* ---------- Empty state ---------- */
.empty-state {
  background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 40px 20px; text-align: center; color: var(--ink-soft);
}
.empty-state h2 { color: var(--ink); }

/* ---------- Content pages / articles ---------- */
.page-wrap { padding-top: 30px; padding-bottom: 40px; }   /* top/bottom only: keeps .container's side gutter on phones */
.prose { max-width: none; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: #EAF0F8; }
.table-scroll { overflow-x: auto; }

/* ---------- CTA panel (funnel block) ---------- */
.cta-panel {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 24px 20px; margin: 26px 0;
  box-shadow: var(--shadow-lift);
}
.cta-panel h2, .cta-panel h3 { color: #fff; margin-top: 0; }
.cta-panel p { color: #D8E4F7; }
.cta-panel .btn { margin-top: 6px; }

/* ---------- Chameleon banner ---------- */
.chameleon-banner { background: var(--yellow); }
.chameleon-banner-inner {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  padding-top: 22px; padding-bottom: 22px;
}
.chameleon-banner-text strong {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; display: block;
}
.chameleon-banner-text span { color: #5B4A12; font-size: 0.95rem; }
.chameleon-banner .btn-primary { background: var(--ink); color: #fff; }
.chameleon-banner .btn-primary:hover { background: #000; }

/* ---------- Footer ---------- */
.site-foot { background: var(--blue-dark); color: #CFE1F7; font-size: 0.9rem; }
.site-foot a { color: #BAD6F6; text-decoration: none; display: block; padding: 2px 0; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 34px; padding-bottom: 20px; }
.foot-logo { display: inline-block; margin-bottom: 12px; }
.foot-logo img { display: block; height: 34px; width: auto; }
.site-foot h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 16px; padding-bottom: 22px;
}
.foot-bottom a { display: inline; color: var(--yellow); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 16px; max-width: 640px;
}
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 5px; }
.form-row .hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"],
.form-row input[type="number"], .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--yellow); border-color: var(--yellow);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.field-error { color: var(--sold); font-size: 0.83rem; font-weight: 600; margin-top: 4px; }
/* Honeypot — hidden from humans, tempting to bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Listing detail ---------- */
.listing-layout { display: grid; grid-template-columns: 1fr; gap: 22px; }
.listing-layout > * { min-width: 0; }   /* columns never grow wider than the screen (e.g. a long row of photo thumbnails) */
.gallery-main {
  border-radius: var(--radius); overflow: hidden; background: #E8EEF6;
  box-shadow: var(--shadow); position: relative;
}
.gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery-thumbs img {
  width: 76px; height: 58px; object-fit: cover; border-radius: var(--radius-sm);
  cursor: pointer; border: 2px solid transparent; flex: none;
}
.gallery-thumbs img.active { border-color: var(--yellow); }
.listing-price { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; color: var(--blue); }
.listing-meta { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 14px; }
.seller-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 16px; margin: 16px 0;
}
.seller-card .btn { width: 100%; margin-top: 8px; }
.contact-phone {
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  color: var(--ink); text-decoration: none; display: block; margin: 4px 0;
}

/* ---------- Calculator ---------- */
.calc-layout { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.calc-results { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 16px; }
.calc-stat { padding: 10px 0; border-bottom: 1px solid var(--line); }
.calc-stat:last-child { border-bottom: 0; }
.calc-stat .label { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.calc-stat .value { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--blue); }
.calc-stat .value.negative { color: var(--sold); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* ============================================================
   Larger screens
   ============================================================ */
@media (min-width: 640px) {
  h1 { font-size: 2.3rem; }
  .hero h1 { font-size: 2.5rem; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .search-bar { grid-template-columns: 1fr 180px 180px auto; align-items: center; }
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .chameleon-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .form-card { padding: 26px 24px; }
}

@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .listing-layout { grid-template-columns: 3fr 2fr; }
  .calc-layout { grid-template-columns: 1fr 1fr; }
  .brand-text { font-size: 1.35rem; }
}

/* ============================================================
   Chameleon Inflatables presence (green = the brand cue)
   ============================================================ */

/* Top relationship disclosure — deliberately quiet: transparency, not an advert */
.endorse-bar { background: #EEF3F9; border-bottom: 1px solid var(--line); }
.endorse-bar a {
  display: block; text-align: center; color: var(--ink-soft); text-decoration: none;
  font-size: 0.76rem; font-weight: 500; padding: 4px 12px;
}
.endorse-bar a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 640px) { .endorse-extra { display: none; } }

/* Co-branded logo lockup */
.brand-stack { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand-sub {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.02em;
  color: #C6D6F0; margin-top: 2px; white-space: nowrap;
}

/* Featured "New from Chameleon" tile in the listings grid */
.chameleon-tile { background: linear-gradient(160deg, #55B531 0%, #3C8A24 100%); color: #fff; }
.chameleon-tile:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.chameleon-tile .ct-img {
  aspect-ratio: 1 / 1; position: relative; display: flex; align-items: center; justify-content: center;
  background: #fff; padding: 14px;
}
.chameleon-tile .ct-emoji { font-size: 2.6rem; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2)); }
.chameleon-tile .ct-logo { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.chameleon-tile .ct-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.chameleon-tile .ct-actions .btn { flex: 1 1 auto; }
.chameleon-tile .btn-fc { background: #fff; color: var(--green-dark); }
.chameleon-tile .btn-fc:hover { background: #EAF8E2; color: var(--green-dark); }
.btn-outline-fc { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.75); }
.btn-outline-fc:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

.chameleon-tile .ct-badge {
  position: absolute; top: 10px; left: 10px; background: var(--green-dark); color: #fff;
  font-weight: 800; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.chameleon-tile .card-title { color: #fff; }
.chameleon-tile .ct-sub { color: #EAFCE0; font-size: 0.82rem; }
.chameleon-tile .ct-cta { color: #fff; font-weight: 800; margin-top: auto; }

.foot-disclosure { font-size: 0.82rem; color: #BAD6F6; }
.foot-disclosure a { display: inline; color: var(--yellow); }
.cta-panel .cta-panel-alt { color: #fff; border-color: #fff; margin-left: 6px; }
.cta-panel .cta-panel-alt:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ============================================================
   Mobile bottom tab bar (WhatsApp-style) — phones only
   ============================================================ */
.tabbar { display: none; }

@media (max-width: 640px) {
  /* Replace the top nav strip + header Sell buttons with the bottom bar */
  .site-nav { display: none; }
  .head-actions { display: none; }

  /* Keep page content clear of the fixed bar (and the iOS home indicator) */
  body { padding-bottom: calc(71px + env(safe-area-inset-bottom, 0px)); }

  .tabbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 12px rgba(34, 48, 63, 0.10);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .tabbar a {
    position: relative; flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 10px 2px 9px; text-decoration: none;
    color: #111; font-size: 0.78rem; font-weight: 700; line-height: 1;
  }
  .tabbar a svg { width: 30px; height: 30px; }
  .tabbar a span { white-space: nowrap; }
  .tabbar a:active { background: #F4F7FB; }
  .tabbar a.active { color: #000; }
  .tabbar a.active span { font-weight: 800; }
  .tabbar a.active::before {
    content: ''; position: absolute; top: 0; left: 26%; right: 26%; height: 3px;
    background: currentColor; border-radius: 0 0 4px 4px;
  }
}

/* ============================================================
   Business-for-sale (going concern) feature
   ============================================================ */
.callout-soft {
  background: #EAF0F8; border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm); padding: 12px 14px; margin: 14px 0; max-width: 640px; font-size: .95rem;
}
.price-neg { font-size: .7rem; font-weight: 600; color: var(--ink-soft); }

/* Business card in the mixed browse grid — visually distinct from single listings */
.card--biz { border: 1px solid var(--blue); box-shadow: 0 2px 10px rgba(24, 116, 201, 0.16); }
.badge-biz-flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .01em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.biz-flag {
  display: inline-block; background: var(--blue); color: #fff; font-weight: 700;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
}
.biz-facts {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; margin: 16px 0;
}
.biz-fact { display: grid; grid-template-columns: 150px 1fr; gap: 10px; background: var(--card); padding: 10px 14px; font-size: .92rem; }
.biz-fact .bf-k { color: var(--ink-soft); font-weight: 600; }
.biz-fact .bf-v { color: var(--ink); }
@media (max-width: 520px) { .biz-fact { grid-template-columns: 1fr; gap: 2px; } }

.taglist { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0; }
.taglist .tag {
  background: #EAF0F8; color: var(--ink); font-size: .82rem; font-weight: 600;
  padding: 4px 11px; border-radius: 999px;
}

.biz-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 6px 0 8px; }
.biz-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.biz-item-img { aspect-ratio: 4/3; background: #E8EEF6; }
.biz-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-item-img .no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.item-icon-ph { font-size: 3rem; background: linear-gradient(160deg, #F1F6FC, #E4EDF7); }
.biz-item-body { padding: 10px 12px 12px; }
.biz-item-name { font-weight: 700; display: block; }
.biz-item-meta { color: var(--ink-soft); font-size: .85rem; }
.biz-item .taglist { margin-bottom: 0; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; margin: 6px 0 4px; }
label.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; font-size: .92rem; cursor: pointer; }
label.check input { margin-top: 2px; }

fieldset.castle { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 4px; margin: 0 0 14px; }
fieldset.castle legend { font-weight: 700; padding: 0 6px; display: flex; align-items: center; gap: 10px; }
.castle-remove { background: none; border: 0; color: var(--sold); font-weight: 700; font-size: .8rem; cursor: pointer; padding: 2px 4px; }
.castle-blower { margin-top: 2px; }

.biz-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.biz-filter select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); }

.biz-promo {
  display: flex; flex-direction: column; gap: 14px; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--blue);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.biz-promo h2 { margin: 0 0 4px; }
.biz-promo p { margin: 0; color: var(--ink-soft); max-width: 560px; }
.biz-promo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 720px) {
  .biz-promo { flex-direction: row; align-items: center; }
  .biz-promo-actions { flex: none; }
}

/* Sell page — single/business mode toggle */
.mode-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; margin: 6px 0 16px; background: #fff; max-width: 100%; }
.mode-toggle label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem; cursor: pointer; color: var(--ink-soft); white-space: nowrap; }
.mode-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.mode-toggle label.on { background: var(--blue); color: #fff; }
.mode-toggle label:has(input:checked) { background: var(--blue); color: #fff; }

/* Show only the active mode's fields — :has() primary, JS-set attribute as fallback.
   Kept as separate rules so browsers without :has() still honour the attribute rules. */
#sell-form:has(input[name="mode"][value="single"]:checked) [data-mode="business"] { display: none; }
#sell-form:has(input[name="mode"][value="business"]:checked) [data-mode="single"] { display: none; }
#sell-form[data-mode="single"] [data-mode="business"] { display: none; }
#sell-form[data-mode="business"] [data-mode="single"] { display: none; }

/* Structured condition panel on single listings */
.spec-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }
.spec-panel h2 { margin: 0 0 12px; font-size: 1.15rem; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 18px; }
.spec { display: flex; flex-direction: column; gap: 2px; }
.spec-k { color: var(--ink-soft); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.spec-v { color: var(--ink); font-weight: 600; }
.spec-block { margin-top: 14px; }
.spec-block .spec-k { display: block; margin-bottom: 6px; }
.cond-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; color: #fff; }
.cond-hi { background: var(--good); }
.cond-mid { background: var(--yellow-dark); color: var(--ink); }
.cond-lo { background: var(--sold); }
.taglist .tag-warn { background: #FCE9E7; color: #A33327; }
.badge-ok { display: inline-block; background: #E4F6E8; color: #1D6B33; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; }
.card-facts { color: var(--ink-soft); font-size: .8rem; margin-top: 2px; }

/* Plain-English condition report on the listing detail page */
.cond-report { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.cond-report li { position: relative; padding-left: 26px; font-size: .95rem; line-height: 1.4; color: var(--ink); }
.cond-report li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.cond-report li.cr-ok::before { content: '✓'; color: var(--good); }
.cond-report li.cr-warn::before { content: '!'; color: var(--sold); }
.cond-report li.cr-neutral::before { content: '•'; color: var(--ink-soft); }
.cond-report li.cr-warn { color: #8f2d22; }

/* Size (L×W×H) inputs + per-issue severity grid */
.sub-h { margin: 16px 0 4px; font-size: 1rem; }
.lwh-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lwh-row input[type="number"] { width: 92px; }
.lwh-x { color: var(--ink-soft); font-weight: 700; }
.issues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 16px; margin-top: 4px; }
.issue-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.issue-name { font-size: .9rem; }
.issue-row select { width: 78px; flex: none; }

/* ── Clean one-item-per-line condition layout (public sell form) ───────── */
.attr-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.attr-row:last-child { border-bottom: 0; }
.attr-label {
  flex: 0 0 150px; max-width: 150px; font-weight: 600; color: var(--ink);
  font-size: .92rem; display: inline-flex; align-items: center; gap: 5px;
}
.attr-ctrl { flex: 1 1 220px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.attr-ctrl select,
.attr-ctrl input[type="text"], .attr-ctrl input[type="number"], .attr-ctrl input[type="tel"], .attr-ctrl textarea {
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
.attr-ctrl select:focus,
.attr-ctrl input:focus, .attr-ctrl textarea:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); }
.attr-ctrl select { width: auto; min-width: 120px; }
.attr-ctrl .lwh-x { color: var(--ink-soft); font-weight: 700; }

/* Radios / checkboxes as tap-friendly chips (replaces ≤3-item dropdowns) */
.radio-row { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.radio, label.check {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: .9rem; background: #fff; color: var(--ink); line-height: 1.1;
}
.radio input, label.check input { accent-color: var(--blue); margin: 0; }
.radio:has(input:checked) { border-color: var(--blue); background: #EAF3FC; font-weight: 600; }
label.check:has(input:checked) { border-color: var(--blue); background: #EAF3FC; }

/* ── Clickable 5-star rating widget ───────────────────────────────────── */
.star-select-hidden, .attr-ctrl select.star-select-hidden {
  position: absolute; width: 1px; min-width: 0; height: 1px; padding: 0; border: 0;
  opacity: 0; pointer-events: none; overflow: hidden;
}
.stars { display: inline-flex; gap: 2px; line-height: 1; }
.stars .star {
  background: none; border: 0; padding: 0 2px; cursor: pointer;
  font-size: 1.6rem; color: #D3DBE5; transition: color .08s, transform .08s;
}
.stars .star.on { color: var(--yellow-dark); }
.stars .star:hover { transform: scale(1.12); }
.stars.disabled { opacity: .45; }
.stars.disabled .star { cursor: default; color: #D3DBE5; }
.stars.disabled .star:hover { transform: none; }
.star-word { font-weight: 700; font-size: .85rem; color: var(--ink-soft); min-width: 68px; }

/* ── ⓘ rating-criteria popover ────────────────────────────────────────── */
.info-wrap { position: relative; display: inline-flex; }
.info-i, .info-i-inline {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%; border: 0;
  background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700;
  font-style: italic; font-family: Georgia, serif; cursor: pointer; padding: 0;
}
.info-i-inline { cursor: default; vertical-align: middle; }
.info-pop {
  display: none; position: absolute; z-index: 30; top: 140%; left: 50%;
  transform: translateX(-50%); width: max-content; max-width: 240px;
  background: var(--ink); color: #fff; font-size: .8rem; font-weight: 400;
  line-height: 1.35; padding: 8px 11px; border-radius: 8px; box-shadow: var(--shadow-lift);
}
.info-pop.open { display: block; }
.info-pop::before {
  content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: var(--ink);
}

/* Blower sub-controls (revealed when a blower is included) */
.blower-extra { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: 4px; }
.blower-cond { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-soft); }

/* Known-issue rows: not-present shows a locked, faded 5★ (handled by .stars.disabled) */
.issue-line .attr-ctrl { gap: 14px; }

/* Size up/down clicker (−/＋), built from the dim-select options */
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.stepper .step-btn {
  border: 0; background: #F1F5FA; color: var(--blue); font-size: 1.15rem; font-weight: 700;
  width: 34px; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.stepper .step-btn:hover { background: #E3EDF7; }
.stepper .step-btn:active { background: var(--blue); color: #fff; }
.stepper .step-val { min-width: 52px; padding: 8px 6px; text-align: center; font-weight: 700; color: var(--ink); align-self: center; }

/* ── Business item builder ────────────────────────────────────────────── */
.item-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0; margin: 0 0 12px; background: var(--card); overflow: hidden; min-width: 0; }
.item-head {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer;
  background: #F8FBFF; border-bottom: 1px solid var(--line);
}
.item-card.collapsed .item-head { border-bottom: 0; }
.item-type-badge {
  flex: none; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px; color: var(--blue-dark); background: #E7F0FA;
  display: inline-flex; align-items: center; gap: 4px;
}
.item-type-badge::before { font-size: .95rem; line-height: 1; }
/* Business item types */
.type-inflatable::before { content: "🎪"; }
.type-simple::before     { content: "🧰"; }
.type-vehicle::before    { content: "🚚"; }
.type-goodwill::before   { content: "🌐"; }
.type-staff::before      { content: "👥"; }
/* Single-listing categories */
.cat-jumping-castle::before          { content: "🏰"; }
.cat-water-slide::before             { content: "🛝"; }
.cat-interactive-attractions::before { content: "🎯"; }
.item-title { flex: 1 1 auto; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-collapse, .item-remove {
  flex: none; border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1;
  width: 30px; height: 30px; border-radius: 8px; color: var(--ink-soft);
}
.item-collapse { font-size: 1.15rem; transition: transform .15s; }
.item-card.collapsed .item-collapse { transform: rotate(-90deg); }
.item-remove { color: var(--sold); font-weight: 700; }
.item-collapse:hover, .item-remove:hover { background: #E8EEF5; }
.item-body { padding: 14px; }
.item-card.collapsed .item-body { display: none; }

.builder-block { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; background: #FBFDFF; margin: 8px 0 6px; }
.builder-title { margin: 0 0 2px; font-size: 1.15rem; }
.items-empty { color: var(--ink-soft); font-style: italic; margin: 6px 0 12px; }
.switch-mode { margin: -4px 0 14px; font-size: .92rem; }
.switch-mode a { font-weight: 700; }

/* Client-side validation: highlighted fields + the "please fix these" summary */
.field-invalid { outline: 2px solid var(--sold); outline-offset: 3px; border-radius: 8px; }
.sell-errors { margin-bottom: 16px; }
.sell-errors ul { margin: 8px 0 0; padding-left: 20px; }
.sell-errors li { margin: 2px 0; }
.sell-errors a { color: #7A241C; font-weight: 700; text-decoration: underline; }
.sell-errors a:hover { color: var(--sold); }

/* Photo thumbnails under a file input (choose → preview → remove / reorder) */
.photo-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pp-thumb { position: relative; width: 88px; height: 66px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #eef2f7; flex: none; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-cover { position: absolute; top: 3px; left: 3px; background: var(--good); color: #fff; font-size: .56rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.pp-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; font-size: .7rem; line-height: 1; cursor: pointer; }
.pp-x:hover { background: var(--sold); }
.pp-mv { position: absolute; bottom: 3px; width: 20px; height: 20px; border: 0; border-radius: 5px; background: rgba(0,0,0,.55); color: #fff; font-size: .62rem; line-height: 1; cursor: pointer; }
.pp-mv-l { left: 3px; }
.pp-mv-r { right: 3px; }
.pp-hint { flex-basis: 100%; font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }

/* Post-submit "thanks + your private links" panel, and the required-fields note */
.thanks-panel { margin-bottom: 16px; }
.thanks-links { margin: 8px 0 0; padding-left: 20px; }
.thanks-links li { margin: 3px 0; }
.thanks-links a { font-weight: 700; }
.req-note { font-size: .85rem; margin: -2px 0 12px; }

/* "Email me new matches" saved-search signup */
.alert-signup {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.alert-signup h2 { margin: 0 0 6px; font-size: 1.3rem; }
.alert-signup-copy p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.alert-row { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 8px; }
.alert-signup input, .alert-signup select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff;
}
.alert-signup input:focus, .alert-signup select:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); }
.alert-signup .btn { width: 100%; margin-top: 4px; }
.alert-fine { font-size: .78rem; color: var(--ink-soft); margin: 8px 0 0; }
@media (min-width: 700px) {
  .alert-signup { grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; }
  .alert-row { grid-template-columns: 1fr 1fr; }
  .alert-signup .btn { width: auto; }
}
.item-adder { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.item-adder-label { font-weight: 700; color: var(--ink-soft); font-size: .9rem; }
.item-adder .add-item { flex: 0 0 auto; }
.biz-item-note { font-size: .85rem; color: var(--ink-soft); margin: 4px 0 0; }
.biz-item-name .item-type-badge { vertical-align: middle; margin-right: 4px; }

/* "How the star ratings work" info sheet */
.rate-help { margin: 8px 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #F8FBFF; }
.rate-help > summary { cursor: pointer; padding: 10px 14px; font-weight: 700; color: var(--blue); }
.rate-help > *:not(summary) { padding: 0 14px 12px; margin: 0; font-size: .9rem; color: var(--ink-soft); }
.rate-help p + p { padding-top: 8px; }

/* Read-only price value shown for free / make-offer / contact modes */
.price-display {
  display: inline-block; padding: 11px 13px; border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm); font-weight: 700; color: var(--ink-soft); background: #F8FBFF;
}
.price-display[hidden] { display: none; }

/* File inputs styled to match the rest of the form + a pill "Choose files" button */
input[type="file"] {
  font: inherit; color: var(--ink-soft); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 7px 9px; max-width: 100%;
}
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; font-size: .88rem; border: 0; border-radius: 999px;
  padding: 8px 16px; margin-right: 12px; background: var(--blue); color: #fff; cursor: pointer;
  transition: background .15s ease;
}
input[type="file"]::-webkit-file-upload-button {
  font: inherit; font-weight: 700; font-size: .88rem; border: 0; border-radius: 999px;
  padding: 8px 16px; margin-right: 12px; background: var(--blue); color: #fff; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--blue-dark); }
input[type="file"]:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); }

/* Severity stars in the public/admin display panels */
.sev-stars { color: var(--yellow-dark); letter-spacing: 1px; white-space: nowrap; }

@media (max-width: 560px) {
  .attr-label { flex-basis: 100%; max-width: none; }
}

/* One-spec-per-line layout for the whole add/edit form (label left, control right) */
.form-lined .form-grid-2 { display: block; }
.form-lined .form-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  padding: 11px 0; margin: 0; border-bottom: 1px solid var(--line);
}
.form-lined .form-row > label:first-child {
  flex: 0 0 150px; max-width: 150px; margin: 0; font-weight: 600; font-size: .92rem; color: var(--ink);
}
.form-lined .form-row > input,
.form-lined .form-row > select,
.form-lined .form-row > textarea,
.form-lined .form-row > .radio-row,
.form-lined .form-row > .price-display { flex: 1 1 220px; width: auto; min-width: 0; }
.form-lined .form-row > .hint,
.form-lined .form-row > .field-error { flex-basis: 100%; }
.form-lined .form-row > label.check { flex-basis: 100%; max-width: none; flex-grow: 1; }
.form-lined .form-row > .price-line { flex: 1 1 220px; }
@media (max-width: 560px) {
  .form-lined .form-row > label:first-child { flex-basis: 100%; max-width: none; }
}

/* Price on one line: type + amount + negotiable together */
.price-line { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.price-line select { flex: 0 0 auto; width: auto; }
.price-line input[type="number"] { flex: 0 1 150px; width: auto; }
.price-line label.check { flex: 0 0 auto; margin: 0; }

/* Seller manage page: status/actions panel, sold success, and the "compare new" call to action */
.manage-status { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px; max-width: 760px; }
.manage-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.manage-actions form { margin: 0; }
.sold-done { max-width: 760px; margin-bottom: 14px; }
.cta-new { background: #F4F8F1; border: 1px solid #DDEED3; border-radius: var(--radius); padding: 14px 16px; max-width: 760px; margin: 0 0 18px; }
.cta-new p { margin: 4px 0 10px; color: var(--ink-soft); font-size: .93rem; }
.cta-new--strong { background: #EAF6E3; border-color: #BFDDB0; }

/* Share controls on listing / business pages */
.share-box { margin: 14px 0 0; }
.share-label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.share-btn { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.share-btn:hover { border-color: var(--blue); color: var(--blue); }
.share-fb:hover { border-color: #1877F2; color: #1877F2; }
.share-wa:hover { border-color: var(--whatsapp); color: #128C4B; }

/* Home: community invitation (only rendered once the Facebook Group URL is configured) */
.community-cta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.community-cta h2 { margin: 0 0 4px; font-size: 1.2rem; }
.community-cta p { margin: 0; color: var(--ink-soft); font-size: .93rem; max-width: 620px; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0 0 12px; padding: 0; font-size: .82rem; color: var(--ink-soft); }
.breadcrumbs li + li::before { content: "›"; margin: 0 7px; color: #9AA7B3; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 22px 0 0; }
.page-link { display: inline-block; min-width: 40px; padding: 8px 12px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); text-align: center; text-decoration: none; font-weight: 600; font-size: .92rem; }
a.page-link:hover { border-color: var(--blue); color: var(--blue); }
.page-link.is-current { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-gap { padding: 8px 4px; color: var(--ink-soft); }
.cta-new-brand { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 2px; }


/* ---------- Wanted requests (demand side) — deliberately unlike For Sale cards ---------- */
.badge-wanted { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .74rem;
  letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.badge-wanted--lg { font-size: .9rem; padding: 5px 14px; }
.badge-closed { display: inline-block; background: #E6EAEF; color: var(--ink-soft); font-weight: 800; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.hero--wanted { background: var(--ink); border-bottom-color: var(--yellow); }
.hero--wanted p { color: #D5DEE8; }
.wanted-how { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 18px; }
.wanted-how div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .92rem; }
.wanted-how strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.wanted-how span { color: var(--ink-soft); }
.wanted-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; }
.wanted-filter select { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; }
.wanted-card { background: #FFFBEA; border: 2px dashed #E3B200; border-radius: var(--radius); padding: 14px 14px 16px;
  display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.wanted-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.wanted-card-cat { font-size: .75rem; font-weight: 600; color: var(--ink-soft); text-align: right; }
.wanted-card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.25; color: var(--ink); text-decoration: none; }
.wanted-card-title:hover { color: var(--blue); }
.wanted-card-where { font-weight: 700; font-size: .9rem; }
.wanted-card-budget { font-size: .88rem; }
.wanted-card-date { font-size: .78rem; color: var(--ink-soft); margin-top: auto; }
.wanted-card-btn { align-self: flex-start; margin-top: 8px; background: var(--ink); color: #fff; }
.wanted-card-btn:hover { background: #111A24; color: #fff; }
.wanted-head h1 { margin: 10px 0 6px; }
.wanted-facts { display: grid; grid-template-columns: 1fr; gap: 6px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; margin: 10px 0 6px; }
.wanted-facts div { display: flex; flex-direction: column; }
.wanted-respond { border-top: 5px solid var(--yellow); }
.wanted-respond .btn-primary { width: 100%; margin: 4px 0 10px; }
.wanted-existing { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.wanted-existing summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.wanted-existing form { margin-top: 10px; }
.wanted-context { display: flex; gap: 12px; align-items: flex-start; background: #FFFBEA; border: 2px dashed #E3B200;
  border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; max-width: 760px; }
.wanted-context div { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.wanted-kv { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: .95rem; }
.wanted-kv th { text-align: left; vertical-align: top; padding: 6px 12px 6px 0; color: var(--ink-soft); white-space: nowrap; }
.wanted-kv td { padding: 6px 0; }
.wanted-sent { margin: 0 0 18px; padding-left: 18px; max-width: 760px; }
.wanted-promo h2 .badge-wanted { margin-right: 6px; position: relative; top: -2px; }
@media (min-width: 640px) {
  .wanted-how { grid-template-columns: repeat(3, 1fr); }
  .wanted-facts { grid-template-columns: repeat(2, 1fr); }
}
.form-lined .form-row[hidden] { display: none; }   /* [hidden] must win over the flex layout above */

/* Second-hand-only policy: an informative note on the sell form (not a warning) */
.policy-note { background: #EEF5FC; border: 1px solid #CFE1F4; border-left: 4px solid var(--blue); border-radius: var(--radius-sm);
  padding: 10px 14px; margin: 0 0 16px; max-width: 760px; }
.policy-note strong { display: block; font-size: .98rem; }
.policy-note p { margin: 3px 0 0; font-size: .9rem; color: var(--ink-soft); }
.policy-confirm label.check { font-weight: 600; line-height: 1.4; border-radius: var(--radius-sm); padding: 10px 12px; }

.wanted-card-pref { align-self: flex-start; font-size: .75rem; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid #E3B200; border-radius: 999px; padding: 1px 9px; }
.wanted-card-pref.is-new { border-color: var(--green); color: var(--green-dark); }

/* ---------- Sponsored strip (new from Chameleon Inflatables; partials/sponsored-strip.php) ---------- */
.sp-strip { grid-column: 1 / -1; background: #F2F9EE; border: 1px solid #CFE6C3; border-radius: var(--radius); padding: 12px 12px 14px; margin: 4px 0; }
.sp-strip--solo { margin-top: 18px; }
.sp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 10px; }
.sp-title { margin: 0; font-weight: 800; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.sp-label { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft);
  background: #fff; border: 1px solid #D5DEE8; border-radius: 999px; padding: 1px 8px; margin-right: 4px; vertical-align: 2px; }
.sp-sub { display: block; font-weight: 500; font-size: .8rem; color: var(--ink-soft); }
.sp-more { font-size: .86rem; font-weight: 700; color: var(--green-dark); white-space: nowrap; }
.sp-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.sp-card { scroll-snap-align: start; background: #fff; border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: box-shadow .15s ease, transform .15s ease; }
.sp-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.sp-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #E8EEF6; }
.sp-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sp-name { font-weight: 700; font-size: .9rem; line-height: 1.25; }
.sp-size { font-size: .78rem; color: var(--ink-soft); }
.sp-price { font-weight: 800; color: var(--green-dark); font-size: 1.02rem; margin-top: auto; padding-top: 4px; }
.sp-price small { font-weight: 700; font-size: .72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.sp-cta { font-size: .8rem; font-weight: 700; color: var(--green-dark); }
@media (min-width: 640px) {
  .sp-strip { padding: 14px 16px 16px; }
  .sp-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}
