/* Blythe Properties (lettings app). Its own look: not the NHS design the referral sites use. */
:root {
  --bp-ink: #17212b;
  --bp-muted: #55606b;
  --bp-line: #dde3e6;
  --bp-bg: #ffffff;
  --bp-tint: #f3f7f6;
  --bp-brand: #0f5c56;
  --bp-brand-dark: #0a423e;
  --bp-sun: #f4b942;
  --bp-coral: #c8453a;
  --bp-radius: 14px;
  --bp-shadow: 0 1px 2px rgb(23 33 43 / 6%), 0 6px 20px rgb(23 33 43 / 7%);
  --bp-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.bp { margin: 0; font-family: var(--bp-font); font-size: 17px; line-height: 1.6; color: var(--bp-ink); background: var(--bp-bg); }
.bp img { max-width: 100%; height: auto; display: block; }
.bp a { color: var(--bp-brand); text-underline-offset: 3px; }
.bp a:hover { color: var(--bp-brand-dark); }
.bp :focus-visible { outline: 3px solid var(--bp-sun); outline-offset: 2px; }
.bp h1, .bp h2, .bp h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
.bp h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
.bp h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 750; }
.bp h3 { font-size: 1.15rem; font-weight: 700; }
.bp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .bp-wrap { padding: 0 28px; } }
.bp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bp-skip { position: absolute; left: -999px; top: 8px; background: var(--bp-sun); color: var(--bp-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.bp-skip:focus { left: 8px; }

/* Header */
.bp-header { background: var(--bp-bg); border-bottom: 1px solid var(--bp-line); }
@media (min-width: 900px) { .bp-header { position: sticky; top: 0; z-index: 5; } }
.bp-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.bp-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bp-ink) !important; }
.bp-logo__mark { width: 34px; height: 34px; color: var(--bp-brand); }
.bp-logo__dot { fill: var(--bp-sun); }
.bp-logo__name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.bp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.bp-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--bp-ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.bp-nav a:hover { background: var(--bp-tint); color: var(--bp-brand-dark); }
.bp-nav a[aria-current="page"] { background: var(--bp-brand); color: #fff; }

/* Buttons and fields */
.bp-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--bp-brand); color: #fff !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.bp-button:hover { background: var(--bp-brand-dark); }
.bp-button--light { background: #fff; color: var(--bp-brand-dark) !important; }
.bp-button--light:hover { background: var(--bp-tint); }
.bp-button--wide { width: 100%; }
.bp-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.bp-field label, .bp-field legend { font-weight: 650; font-size: .95rem; padding: 0; }
.bp-field input[type=text], .bp-field input[type=email], .bp-field input[type=tel], .bp-field select, .bp-field textarea {
  font: inherit; color: var(--bp-ink); background: #fff; border: 1.5px solid #b9c3c8; border-radius: 10px; padding: 10px 12px; min-height: 48px; width: 100%; }
.bp-field textarea { min-height: 160px; resize: vertical; }
.bp-field input:focus, .bp-field select:focus, .bp-field textarea:focus { border-color: var(--bp-brand); outline: 3px solid rgb(244 185 66 / 60%); outline-offset: 0; }
.bp-field--error input, .bp-field--error textarea { border-color: var(--bp-coral); }
.bp-error { color: var(--bp-coral); font-weight: 650; margin: 0; }
.bp-check, .bp-radio { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; min-height: 44px; }
.bp-check input, .bp-radio input { width: 20px; height: 20px; accent-color: var(--bp-brand); margin: 0; }
.bp-radio { display: flex; font-weight: 500; }
.bp-hp { position: absolute; left: -9999px; }

/* Hero */
.bp-hero { background: radial-gradient(1200px 500px at 85% -10%, #1b7a72 0%, transparent 60%), var(--bp-brand); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.bp-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; background: var(--bp-sun); opacity: .9; }
.bp-hero--photo { background: linear-gradient(90deg, rgb(10 66 62 / 92%) 0%, rgb(10 66 62 / 70%) 55%, rgb(10 66 62 / 25%) 100%), var(--bp-hero-image) center/cover; }
.bp-hero--photo::after { display: none; }
.bp-hero__inner { position: relative; z-index: 1; }
.bp-hero__heading { font-size: clamp(2.3rem, 6vw, 3.6rem) !important; max-width: 14ch; }
.bp-hero__text { font-size: 1.2rem; max-width: 46ch; margin: 0 0 28px; color: #e3f1ef; }
.bp-search, .bp-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; background: #fff; color: var(--bp-ink); border-radius: var(--bp-radius); padding: 18px; box-shadow: var(--bp-shadow); max-width: 820px; }
.bp-search .bp-field, .bp-filters .bp-field { margin: 0; flex: 1 1 150px; }
.bp-search .bp-button, .bp-filters .bp-button { flex: 0 0 auto; }
.bp-filters { max-width: none; margin: 8px 0 18px; box-shadow: none; border: 1px solid var(--bp-line); }
.bp-clear { font-weight: 600; align-self: center; }

/* Sections and cards */
.bp-section { padding: 56px 0; }
.bp-section--tint { background: var(--bp-tint); }
.bp-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.bp-more { font-weight: 700; }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.bp-card { background: #fff; border: 1px solid var(--bp-line); border-radius: var(--bp-radius); overflow: hidden; box-shadow: var(--bp-shadow); transition: transform .15s ease, box-shadow .15s ease; }
.bp-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(23 33 43 / 8%), 0 12px 28px rgb(23 33 43 / 10%); }
.bp-card__link { display: block; color: inherit !important; text-decoration: none; }
.bp-card__photo { position: relative; aspect-ratio: 16 / 10.5; background: #e6eeec; }
.bp-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.bp-card__nophoto, .bp-gallery__empty { display: grid; place-items: center; width: 100%; height: 100%; color: #b5cbc7; background: linear-gradient(135deg, #e6eeec, #d6e4e1); }
.bp-card__nophoto svg { width: 64px; }
.bp-gallery__empty { aspect-ratio: 16 / 9; border-radius: var(--bp-radius); margin-bottom: 24px; }
.bp-gallery__empty svg { width: 96px; }
.bp-card--let .bp-card__photo { filter: grayscale(.6); }
.bp-card__body { padding: 16px 18px 18px; }
.bp-card__price { margin: 0 0 4px; color: var(--bp-muted); font-size: .9rem; }
.bp-card__price strong { color: var(--bp-brand-dark); font-size: 1.45rem; letter-spacing: -0.02em; }
.bp-card__title { margin: 0 0 2px !important; }
.bp-card__area { margin: 0 0 10px; color: var(--bp-muted); }
.bp-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bp-facts li { background: var(--bp-tint); border-radius: 999px; padding: 2px 10px; font-size: .88rem; font-weight: 600; }
.bp-badge { position: absolute; top: 12px; left: 12px; background: var(--bp-sun); color: var(--bp-ink); border-radius: 999px; padding: 3px 11px; font-size: .82rem; font-weight: 750; }
.bp-badge--let { background: var(--bp-ink); color: #fff; }
.bp-panel .bp-badge { position: static; display: inline-block; margin: 0 0 12px; }
.bp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-top: 18px; }
.bp-feature { background: #fff; border-radius: var(--bp-radius); padding: 22px; border-top: 5px solid var(--bp-sun); }
.bp-feature p { margin: 0; color: var(--bp-muted); }
.bp-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--bp-brand-dark); color: #fff; border-radius: var(--bp-radius); padding: 32px; }
.bp-banner p { margin: 0; color: #d8ebe8; max-width: 60ch; }

/* Inner pages */
.bp-page { padding-top: 40px; padding-bottom: 64px; }
.bp-page--narrow { max-width: 820px; }
.bp-lede { font-size: 1.2rem; color: var(--bp-muted); max-width: 60ch; }
.bp-count { color: var(--bp-muted); font-weight: 600; }
.bp-back { margin: 0 0 12px; }
.bp-back a { font-weight: 650; }
.bp-back a::before { content: "← "; }
.bp-property { display: grid; gap: 32px; }
@media (min-width: 900px) { .bp-property { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .bp-panel { position: sticky; top: 92px; } }
.bp-property__area { color: var(--bp-muted); font-size: 1.1rem; margin-top: -4px; }
.bp-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 24px; }
.bp-gallery__item { margin: 0; }
.bp-gallery__item img { border-radius: 10px; width: 100%; }
.bp-gallery__item--main { grid-column: 1 / -1; }
.bp-gallery figcaption { font-size: .85rem; color: var(--bp-muted); margin-top: 4px; }
.bp-panel { background: #fff; border: 1px solid var(--bp-line); border-radius: var(--bp-radius); padding: 22px; box-shadow: var(--bp-shadow); }
.bp-panel h2 { font-size: 1.2rem; }
.bp-panel__price { margin: 0 0 12px; color: var(--bp-muted); }
.bp-panel__price strong { display: block; font-size: 2rem; color: var(--bp-brand-dark); letter-spacing: -0.02em; line-height: 1.1; }
.bp-panel__facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 20px; }
.bp-panel__facts dt { color: var(--bp-muted); }
.bp-panel__facts dd { margin: 0; font-weight: 650; }
.bp-ticks { list-style: none; padding: 0; columns: 2 220px; }
.bp-ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; break-inside: avoid; }
.bp-ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--bp-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 7 11l5-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.bp-prose { max-width: 72ch; }
.bp-prose h2 { margin-top: 1.4em; }
.bp-figure { margin: 24px 0; }
.bp-figure img { border-radius: var(--bp-radius); }
.bp-callout { background: var(--bp-tint); border-left: 5px solid var(--bp-sun); border-radius: 0 var(--bp-radius) var(--bp-radius) 0; padding: 18px 22px; margin: 24px 0; }
.bp-callout h2 { font-size: 1.2rem; margin: 0 0 6px !important; }
.bp-callout p { margin: 0; }
.bp-links { padding-left: 1.2em; }
.bp-notice { border-radius: var(--bp-radius); padding: 18px 22px; background: var(--bp-tint); margin-bottom: 24px; }
.bp-notice h2 { font-size: 1.2rem; }
.bp-notice--done { border-left: 6px solid var(--bp-brand); }
.bp-notice--error { border-left: 6px solid var(--bp-coral); background: #fdf1ef; }
.bp-form { max-width: 620px; }
.bp-small { font-size: .9rem; color: var(--bp-muted); }

/* Footer */
.bp-footer { background: var(--bp-ink); color: #c9d2d8; padding: 36px 0 44px; font-size: .95rem; }
.bp-footer a { color: #fff; }
.bp-footer__links { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.bp-footer__name { color: #fff; font-weight: 700; margin: 0 0 4px; }
.bp-footer__text { margin: 0; max-width: 70ch; }

/* Front page: a full-screen film with the logo top right and the My Home button bottom right.
   Phones first: 100dvh follows the browser bars, and the safe areas keep clear of the notch. */
.bp-home { background: #0b1714; }
.bp-film { position: relative; height: 100vh; height: 100dvh; min-height: 480px; overflow: hidden; color: #fff; background: #0b1714 url("street-poster.cdc9719e7238.jpg") center / cover no-repeat; }
.bp-film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bp-film__shade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 100% 0%, rgb(0 0 0 / 55%) 0%, rgb(0 0 0 / 0%) 70%),
              linear-gradient(0deg, rgb(0 0 0 / 45%) 0%, rgb(0 0 0 / 0%) 32%); }
.bp-film__logo { position: absolute; margin: 0; z-index: 1;
  top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); width: clamp(118px, 34vw, 210px); }
.bp-film__logo img { width: 100%; height: auto; filter: drop-shadow(0 2px 10px rgb(0 0 0 / 35%)); }
.bp-pill { position: absolute; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  bottom: max(26px, calc(env(safe-area-inset-bottom) + 14px)); right: max(18px, env(safe-area-inset-right));
  min-height: 54px; padding: 0 30px; border-radius: 999px; background: #fff; color: var(--bp-ink) !important;
  font-weight: 750; font-size: 1.1rem; letter-spacing: -0.01em; text-decoration: none;
  box-shadow: 0 6px 24px rgb(0 0 0 / 28%); transition: transform .15s ease, box-shadow .15s ease; }
.bp-pill:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgb(0 0 0 / 34%); color: var(--bp-brand-dark) !important; }
.bp-pill:active { transform: translateY(1px); }
.bp-film__pause { position: absolute; z-index: 1; bottom: max(32px, calc(env(safe-area-inset-bottom) + 20px)); left: max(18px, env(safe-area-inset-left));
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / 70%);
  background: rgb(0 0 0 / 25%); color: #fff; cursor: pointer; padding: 0; }
.bp-film__pause svg { width: 18px; height: 18px; }
.bp-film__pause .bp-icon-play, .bp-film__pause[aria-pressed="true"] .bp-icon-pause { display: none; }
.bp-film__pause[aria-pressed="true"] .bp-icon-play { display: block; }
@media (min-width: 900px) {
  .bp-film__logo { top: 32px; right: 40px; }
  .bp-pill { bottom: 40px; right: 40px; min-height: 58px; padding: 0 38px; font-size: 1.15rem; }
  .bp-film__pause { bottom: 48px; left: 40px; }
}
