/* ============================================================
   gumtree.css — faithful clean recreation of a gumtree.com listing
   Real brand facts from their own markup: petrol nav #0d475c,
   electric green #72EF36 (leaf mark), off-white wordmark #F0ECE6,
   Readex Pro (their Google Fonts load).
   ============================================================ */
body.gumtree {
  --brand: #0d475c;            /* Gumtree petrol (nav + headings) */
  --brand-ink: #ffffff;
  --gt-green: #72ef36;         /* electric green (primary actions) */
  --gt-green-deep: #028546;    /* deep green (checks, prices) */
  --paper: #ffffff;
  --ink: #1f2f3b;
  --muted: #636e77;
  --rule: #e5e7e9;
  font-family: "Readex Pro", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

/* ---- petrol bar ---- */
.gt-bar {
  background: #0d475c; color: #f0ece6;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 28px;
}
.gt-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.gt-logo .mark { display: block; height: 26px; width: auto; }
.gt-logo .word { display: block; height: 22px; width: auto; }
.gt-spacer { flex: 1; }
.gt-item {
  display: inline-flex; align-items: center; gap: 8px;
  color: #f0ece6; text-decoration: none; font-weight: 400; font-size: 14.5px;
}
.gt-item:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gt-item svg { width: 18px; height: 18px; }
.gt-post {
  background: var(--gt-green); color: #0d475c; text-decoration: none;
  font-weight: 600; font-size: 14.5px;
  padding: 10px 20px; border-radius: 6px;
}
.gt-post:hover { filter: brightness(1.05); }

/* ---- search band ---- */
.gt-search { background: #fff; border-bottom: 1px solid var(--rule); }
.gt-search .in {
  max-width: 1200px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap;
}
.gt-search .f {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid #c9ced2; border-radius: 6px; padding: 11px 14px;
  color: var(--ink); font-size: 14.5px; background: #fff;
}
.gt-search .f.grow { flex: 1; min-width: 200px; color: var(--ink); }
.gt-search .f svg { width: 17px; height: 17px; color: var(--muted); }
.gt-search .f .caret { font-size: 10px; color: var(--muted); margin-left: 14px; font-weight: 400; }
.gt-search .go {
  background: var(--gt-green); color: #0d475c; border: 0; border-radius: 6px;
  padding: 11px 30px; font-family: inherit; font-weight: 600; font-size: 15px;
}
.gt-search .go:hover { filter: brightness(1.05); }

/* ---- layout ---- */
.gt-main { max-width: 1200px; margin: 0 auto; padding: 18px 28px 80px; }
.gt-crumb { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.gt-crumb a { color: var(--muted); text-decoration: none; }
.gt-crumb a:hover { color: var(--brand); text-decoration: underline; }
.gt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }

/* gallery */
.gt-gallery { position: relative; margin: 0; border-radius: 8px; overflow: hidden; background: #f4f4f2; }
.gt-gallery .main { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 55%; }
.gt-gallery .count {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(13,71,92,.82); color: #fff;
  font-size: 12.5px; padding: 6px 11px; border-radius: 6px;
}
.gt-gallery .count svg { width: 15px; height: 15px; }

/* description */
.gt-desc { padding-top: 26px; }
.gt-desc h2 { font-weight: 600; font-size: 21px; color: var(--brand); margin: 0 0 14px; }
.gt-desc p { margin: 0 0 16px; max-width: 70ch; }

/* seller card (inside gated area) */
.gt-seller { border: 1px solid var(--rule); border-radius: 10px; padding: 20px; margin: 24px 0 0; max-width: 480px; }
.gt-seller h3 { margin: 0 0 14px; font-weight: 600; font-size: 17px; color: var(--brand); }
.gt-seller .row { display: flex; align-items: center; gap: 13px; margin: 0 0 16px; }
.gt-seller .ava {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: #0d475c; color: #72ef36;
  display: grid; place-items: center; font-weight: 600; font-size: 19px;
}
.gt-seller .meta b { display: block; font-weight: 600; font-size: 15.5px; }
.gt-seller .meta span { display: block; font-size: 13px; color: var(--muted); }
.gt-seller .msg, .gt-seller .tel {
  display: block; width: 100%; border-radius: 6px; padding: 12px 16px;
  font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.gt-seller .msg { background: var(--gt-green); color: #0d475c; border: 0; margin: 0 0 10px; }
.gt-seller .msg:hover { filter: brightness(1.05); }
.gt-seller .tel { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.gt-seller .tel:hover { background: #f2f7f9; }

/* right rail */
.gt-title { font-weight: 600; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.25; color: var(--brand); margin: 4px 0 12px; }
.gt-price { font-weight: 700; font-size: 32px; color: var(--ink); margin: 0 0 8px; }
.gt-price .ono { font-weight: 400; font-size: 15px; color: var(--muted); }
.gt-loc { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
.gt-loc svg { width: 15px; height: 15px; flex: none; }
.gt-specs { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--rule); }
.gt-specs li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 2px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.gt-specs span { color: var(--muted); }
.gt-specs b { font-weight: 600; text-align: right; }
.gt-safety { background: #f2f7f9; border-radius: 8px; padding: 14px 16px; font-size: 13px; line-height: 1.5; }
.gt-safety b { display: block; color: var(--brand); font-weight: 600; margin: 0 0 4px; }
.gt-safety span { color: var(--muted); }

/* ---- rewarded gate, skinned to Gumtree's design system ---- */
body.gumtree .gate-eyebrow { color: var(--brand); font-family: "Readex Pro", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
body.gumtree .reward-locker { border-radius: 10px; }
body.gumtree .reward-locker .lock-badge { display: none; }
body.gumtree .reward-locker h3 {
  font-family: "Readex Pro", sans-serif; font-weight: 600;
  font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: 0;
  color: var(--brand); margin: 2px 0 10px;
}
body.gumtree .reward-locker p { font-family: "Readex Pro", sans-serif; font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: none; margin: 0 0 22px; }
body.gumtree .rv-cta {
  background: var(--gt-green); color: #0d475c; border-radius: 6px;
  padding: 15px 24px; font-family: "Readex Pro", sans-serif;
  font-weight: 600; font-size: 15.5px; letter-spacing: 0;
  box-shadow: none;
}
body.gumtree .rv-cta:hover { filter: brightness(1.05); transform: none; }
body.gumtree .rv-cta svg { display: none; }
body.gumtree .rv-later { font-family: "Readex Pro", sans-serif; color: var(--muted); font-weight: 500; font-size: 13.5px; }
body.gumtree .reward-locker .rv-foot { display: none; }
body.gumtree .lk-side h4 { font-family: "Readex Pro", sans-serif; text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 600; color: var(--brand); }
body.gumtree .lk-side li { font-family: "Readex Pro", sans-serif; font-size: 14.5px; color: var(--ink); }
body.gumtree .lk-side li svg { color: var(--gt-green-deep); }
body.gumtree .gate-fine { font-family: "Readex Pro", sans-serif; color: #8a9096; font-size: 12.5px; }
body.gumtree .rv-floating .txt, body.gumtree .rv-floating button { font-family: "Readex Pro", sans-serif; }
body.gumtree .rv-floating button { background: var(--gt-green); color: #0d475c; border-radius: 6px; font-weight: 600; }

/* ---- responsive ---- */
@media (max-width: 920px) {
  .gt-grid { grid-template-columns: 1fr; }
  .gt-rail { order: -1; }
  .gt-item { display: none; }
  .gt-post { margin-left: auto; }
}
