/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --green:        #06c56e;   /* primary action / feature badge (from logo) */
  --green-dark:   #049a55;
  --red:          #e3242b;   /* SOLD pill */
  --ink:          #01312a;   /* headings (logo dark green) */
  --body:         #3d4d5c;
  --muted:        #7b8894;
  --line:         #e4e8ec;
  --bg:           #f6f8f9;
  --card:         #ffffff;
  --radius:       14px;
  --shadow:       0 2px 10px rgba(20, 33, 43, .07);
  --shadow-hover: 0 8px 24px rgba(20, 33, 43, .13);
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.55;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 80px;
}
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 54px; width: auto; display: block; }
@media (max-width: 960px) {
  .logo img { height: 42px; }
}
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: .97rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active { border-bottom-color: var(--green); }

.header-cta { display: flex; align-items: center; gap: 20px; }
.phone { font-size: .85rem; color: var(--muted); }
.phone strong { display: block; color: var(--ink); font-size: 1rem; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 700;
  font-size: .97rem;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-large { padding: 15px 34px; font-size: 1.05rem; margin-top: 20px; }

/* ── Page head + filters ────────────────────────────────── */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 44px 0 28px;
}
.page-head h1 { color: var(--ink); font-size: 2rem; letter-spacing: -.02em; }
.filters { display: flex; gap: 12px; }
.filters select {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font: inherit;
  color: var(--ink);
}
.breadcrumb { margin: 36px 0 20px; font-weight: 600; }
.breadcrumb a:hover { color: var(--green-dark); }
.empty-state { padding: 60px 0; text-align: center; color: var(--muted); }

/* ── Deal grid + cards ──────────────────────────────────── */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 28px;
  padding-bottom: 64px;
}

.deal-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .18s, transform .18s;
  display: flex;
  flex-direction: column;
}
.deal-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.deal-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #dfe4e8;
}
.deal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
}
.badge-feature { left: 14px; background: var(--green-dark); }
.badge-status  { right: 14px; background: var(--red); letter-spacing: .04em; }

.deal-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }

.deal-title { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 12px; }
.deal-title a { color: var(--ink); }
.deal-title a:hover { color: var(--green-dark); }

.pill {
  display: inline-block;
  align-self: flex-start;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.deal-type {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  color: var(--body);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.icon { width: 20px; height: 20px; color: var(--muted); flex: none; }

.deal-stats {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.deal-stats .stat { flex: 1; min-width: 0; }
.stat-label {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  white-space: nowrap;
}

/* ── Deal detail page ───────────────────────────────────── */
.deal-detail {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 64px;
}
.deal-detail-media { position: relative; min-height: 380px; }
.deal-detail-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  position: absolute; inset: 0;
}
.deal-detail-info { padding: 40px 40px 40px 0; }
.deal-detail-info h1 { color: var(--ink); font-size: 2.1rem; letter-spacing: -.02em; margin-bottom: 12px; }
.deal-detail-sub { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.deal-detail-sub .pill { margin-bottom: 0; }
.deal-stats-large { flex-wrap: wrap; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deal-stats-large .stat { flex: none; }
.deal-description { margin-top: 22px; }
.sold-note { margin-top: 20px; font-weight: 600; color: var(--red); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: .85rem;
  color: var(--muted);
}

/* ── Responsive ─────────────────────────────────────────── */


@media (prefers-reduced-motion: reduce) {
  .deal-card { transition: none; }
}

/* ── E-commerce ─────────────────────────────────────────── */
.basket-link {
  position: relative;
  display: inline-flex;
  color: var(--ink);
}
.basket-link svg { width: 24px; height: 24px; }
.basket-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--red);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.deal-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}
.deal-fee { font-size: .9rem; color: var(--muted); }
.deal-fee strong { display: block; color: var(--ink); font-size: 1.15rem; letter-spacing: -.02em; }
.btn-buy { padding: 11px 20px; font-size: .92rem; }
.deal-buy-detail { flex-wrap: wrap; margin-top: 22px; }
.deal-buy-detail .small { flex-basis: 100%; }

.flash {
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 16px;
}
.flash-warn { background: #fdeeda; color: #9a5b00; }

.basket {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 26px 30px;
  max-width: 760px;
  margin-bottom: 64px;
}
.basket-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.basket-thumb {
  width: 84px; height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #dfe4e8;
  flex: none;
}
.basket-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.basket-actions { display: contents; }
.basket-fee { text-align: right; }
.btn-link {
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: .85rem;
  text-decoration: underline;
}
.btn-link:hover { color: var(--red); }
.basket-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 1.15rem;
}
.basket-total strong { font-size: 1.5rem; color: var(--ink); letter-spacing: -.02em; }

.checkout-form label {
  display: block;
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted);
  margin: 14px 0 5px;
}
.checkout-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
}
.checkout-form .btn { width: 100%; margin-top: 20px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; margin-top: 10px; }

.success-box {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px;
  max-width: 640px;
  margin: 56px auto 80px;
  text-align: center;
}
.success-box h1 { color: var(--ink); margin-bottom: 14px; }
.success-box p { margin-bottom: 14px; }
.success-box .btn { margin-top: 10px; }

/* ── Areas page ─────────────────────────────────────────── */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  padding-bottom: 64px;
}
.area-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  transition: box-shadow .18s, transform .18s;
}
.area-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.area-card h2 { color: var(--ink); font-size: 1.35rem; margin-bottom: 6px; letter-spacing: -.02em; }
.area-meta { margin-bottom: 8px; }
.area-live { color: var(--green-dark); font-weight: 700; font-size: .9rem; }
.area-soldout { color: var(--muted); font-weight: 600; font-size: .9rem; }
.area-stats { color: var(--body); font-size: .92rem; margin-bottom: 14px; }
.area-stats strong { color: var(--ink); }
.area-cta { color: var(--green-dark); font-weight: 700; font-size: .92rem; }
.filter-clear {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px;
  font-size: .88rem; font-weight: 600; color: var(--ink);
}
.filter-clear:hover { border-color: var(--red); color: var(--red); }

/* ── Subscribe box ──────────────────────────────────────── */
.subscribe-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  border-radius: var(--radius);
  padding: 34px 38px;
  margin: 8px 0 64px;
}
.subscribe-box h2 { color: #fff; margin-bottom: 6px; letter-spacing: -.02em; }
.subscribe-box p { color: #b8c2cb; max-width: 460px; }
.subscribe-form { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-form input[type=email] {
  padding: 13px 16px;
  border: 0; border-radius: 999px;
  font: inherit; min-width: 260px;
}

/* ── Checkout acknowledgement ───────────────────────────── */
.ack-row {
  display: flex !important;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: .9rem !important;
  font-weight: 500 !important;
  color: var(--body) !important;
  cursor: pointer;
}
.ack-row input { width: auto !important; margin-top: 3px; }

.sort-label {
  align-self: center;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Content pages ──────────────────────────────────────── */
.prose {
  max-width: 760px;
  padding-bottom: 72px;
  font-size: 1.02rem;
  line-height: 1.7;
}
.prose .lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 32px;
}
.prose h2 {
  color: var(--ink);
  font-size: 1.4rem;
  letter-spacing: -.02em;
  margin: 40px 0 12px;
}
.prose h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: 8px; }
.prose p  { margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }

.callout {
  background: #f1f4f6;
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 36px 0;
}
.callout p:last-child { margin-bottom: 0; }

.cta-line { margin-top: 40px; }

/* ── FAQ accordions ─────────────────────────────────────── */
.faq {
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--green-dark);
}
.faq[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--green-dark); }
.faq-answer {
  padding: 0 22px 20px;
  color: var(--body);
}

/* ── Footer navigation ──────────────────────────────────── */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
}
.footer-nav a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — these must stay at the END of this file.
   CSS of equal specificity is applied in source order, so a
   media query placed above the rules it overrides does nothing.
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .phone { display: none; }
  .deal-detail { grid-template-columns: 1fr; }
  .deal-detail-info { padding: 28px; }
  .deal-detail-media { min-height: 260px; position: relative; }
  .deal-detail-media img { position: static; height: 100%; }

  .header-inner { gap: 16px; flex-wrap: wrap; min-height: 0; padding-top: 12px; padding-bottom: 12px; }

  /* Nav drops to its own full-width row beneath the logo, scrollable if
     it ever outgrows the screen. No JavaScript, nothing to break. */
  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 22px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; font-size: .95rem; }

  .header-cta { margin-left: auto; gap: 14px; }
}

/* ── Phone ──────────────────────────────────────────────── */
@media (max-width: 620px) {
  .container { padding-left: 16px; padding-right: 16px; }

  .logo img { height: 34px; }

  /* The full number wraps into a green blob at this width. Show a compact
     button instead — it still dials, which is all it needs to do. */
  .header-cta .btn-primary {
    padding: 10px 18px;
    font-size: .9rem;
    white-space: nowrap;
  }
  .header-cta .btn-primary .call-number { display: none; }

  .page-head h1 { font-size: 1.6rem; }

  /* Fee and button side by side is cramped on a phone */
  .deal-buy {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .deal-buy form { width: 100%; }
  .deal-buy .btn-buy { width: 100%; text-align: center; }

  .deal-detail-info { padding: 22px; }
  .deal-detail-info h1 { font-size: 1.5rem; }

  /* Stat rows breathe better stacked two-up than squeezed three-up */
  .deal-stats { gap: 14px 20px; }

  .btn-large { padding: 14px 24px; font-size: 1rem; }

  .subscribe-box { padding: 24px 20px; }
  .footer-nav { gap: 14px 18px; }

  /* Basket rows: four columns side by side don't fit a phone, and flex-wrap
     leaves the description squeezed into a sliver. A small grid is clearer:
     row 1 is the thumbnail and description, row 2 is the fee and Remove. */
  .basket-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px 14px;
    align-items: center;
  }
  .basket-thumb { width: 64px; height: 52px; }

  /* minmax(0, 1fr) above is what stops a long description forcing the row
     wider than the screen */
  .basket-info { min-width: 0; }

  /* The wrapper becomes a real element here, holding fee and Remove on one
     line beneath the property. On desktop it is display:contents, so the
     original layout is untouched. */
  .basket-actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 14px;
    /* On very narrow phones "Finder's fee £960.00" plus Remove is wider than
       the screen, so allow Remove to drop to its own line rather than
       overflowing. */
    flex-wrap: wrap;
  }
  .basket-actions form { flex: none; margin-left: auto; }
  .basket-fee {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .basket-fee .stat-label { display: inline; }
  .basket-fee .stat-value { display: inline; font-size: 1.15rem; }

  .basket-total { font-size: 1.05rem; }
  .basket-total strong { font-size: 1.3rem; }
}