/* Phone web app, v2 (24 Nov 2026): same warm, light look as huisinzicht.vercel.app.
   Sits on top of the extension's popup.css (shared result markup); light only, larger type, rounded cards. */
:root, :root:root {
  --bg: #fffaf3; --fg: #22302a; --muted: #56635c; --line: #ece3d6; --card: #ffffff; --accent: #1f6b5c;
  --bg-2: #f7efe3; --brand-soft: #e4f1ec; --orange: #b04d1c; --orange-soft: #fdeadd; --sun: #fff3dc;
  --shadow: 0 1px 2px #2a1d0a0f, 0 8px 24px -10px #2a1d0a26;
  --head: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root, :root:root { --bg: #fffaf3; --fg: #22302a; --muted: #56635c; --line: #ece3d6; --card: #ffffff; --accent: #1f6b5c; color-scheme: light; }
  .highlight { background: var(--orange-soft) !important; border-color: #f2c9ab !important; color: #4a2f14 !important; }
  .askprice input { background: #fff !important; color: var(--fg) !important; border-color: #f2c9ab !important; }
}
html { background: var(--bg); }
body { width: auto; max-width: 680px; max-height: none; margin: 0 auto; font-size: 16px; line-height: 1.5; background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom); -webkit-text-size-adjust: 100%; }
main { padding: 4px 16px 32px; }
h1 { font: 800 21px/1.2 var(--head); letter-spacing: -.01em; }
h2 { font-size: 12px; margin: 22px 0 8px; color: var(--muted); }
.small { font-size: 13.5px; }
button { font-size: 14px; padding: 7px 12px; border-radius: 10px; }
a { color: var(--accent); }
table { font-size: 15px; }
td { padding: 7px 0; }
td.num .note { max-width: 60vw; font-size: 12.5px; }
.option { display: none; }           /* Funda search-map toggle: extension only */

/* top bar, like the website */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  background: #fffaf3ee; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { color: var(--fg); text-decoration: none; display: flex; align-items: center; gap: 9px; font: 800 18px var(--head); }
.brand img { border-radius: 8px; }
.top .tolink { margin-left: auto; font-weight: 700; font-size: 14px; text-decoration: none; background: var(--brand-soft); color: var(--accent);
  border-radius: 999px; padding: 6px 12px; }

/* search card */
.find { display: grid; gap: 10px; margin: 14px 16px 6px; padding: 16px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
.find .lead { font: 800 20px/1.2 var(--head); }
.find .row { display: flex; gap: 8px; }
/* 16px stops iOS from zooming into the field. */
.find input, .find select { font: 600 16px system-ui, sans-serif; flex: 1; min-width: 0; padding: 11px 12px; height: 46px;
  border: 1.5px solid #ddd2c2; border-radius: 12px; background: var(--bg); color: var(--fg); }
.find input:focus, .find select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--brand-soft); background: #fff; }
.find select { flex: 0 1 9em; }
.find button { font-size: 15px; font-weight: 700; border-radius: 12px; padding: 0 16px; height: 46px; border: 1.5px solid #ddd2c2; background: #fff; color: var(--fg); }
.find .go { background: var(--accent); color: #fff; border-color: var(--accent); }

/* landing */
.welcome { position: relative; border-radius: 20px; overflow: hidden; margin: 8px 0 4px; min-height: 150px; display: grid; align-items: end;
  background: linear-gradient(135deg, #f6d9b8, #b9d3c4); box-shadow: var(--shadow); }
.welcome img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.welcome::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, #163f37d9); }
.welcome p { position: relative; z-index: 1; color: #fff; padding: 14px 16px; font: 700 17px/1.3 var(--head); margin: 0; }
.cards { display: grid; gap: 8px; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recent a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow);
  color: var(--fg); text-decoration: none; border: 0; }
.rbadge { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.rtext { display: flex; flex-direction: column; min-width: 0; }
.rtext b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbtn { float: right; border: none; padding: 0; color: var(--accent); font-size: 13px; text-transform: none; letter-spacing: 0; background: none; }
.calcteaser { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--brand-soft);
  color: var(--accent); text-decoration: none; font-weight: 700; }
.calcteaser span { flex: 1; }
.calcteaser small { display: block; font-weight: 500; color: var(--muted); }
details summary { margin: 20px 0 6px; color: var(--accent); cursor: pointer; font-weight: 700; }
.steps { padding-left: 20px; margin: 4px 0 10px; }
.steps li { margin: 6px 0; }
.bigbtn { display: block; text-align: center; padding: 14px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; font-size: 16px; }
code.copy { display: block; margin: 4px 0; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13px;
  word-break: break-all; user-select: all; -webkit-user-select: all; }

/* results (markup from popup.js) */
header { background: var(--bg); padding-top: 6px; top: 57px; }
.hero { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px; }
.badge { border-radius: 14px; }
.highlight { background: var(--orange-soft); border: 1px solid #f2c9ab; color: #4a2f14; border-radius: 16px; padding: 12px 14px; }
.highlight .hl-value { font: 800 28px/1.1 var(--head); }
.highlight .hl-price { font: 800 19px/1.2 var(--head); }
.tabs { overflow-x: auto; scrollbar-width: none; gap: 6px; border-bottom: 0; margin: 12px 0 6px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { font-size: 14px; padding: 8px 14px; flex: none; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tiles { gap: 8px; }
.tile { background: var(--card); border: 0; border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; }
.tlabel { font-size: 11.5px; font-weight: 700; color: var(--muted); opacity: 1; }
.tvalue { font: 800 22px/1.25 var(--head); }
.tsub { font-size: 12.5px; color: var(--muted); opacity: 1; }
.obcard { background: var(--card); border: 0; border-radius: 16px; box-shadow: var(--shadow); padding: 14px; }
.obbig { font: 800 30px/1.1 var(--head); color: var(--orange); }
.obrange { background: #f2c9ab; } .obdot { background: var(--orange); }
.calclink a { display: block; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--accent); color: #fff; text-decoration: none; }
.chip { background: var(--bg-2); border: 0; font-size: 12.5px; padding: 3px 10px; }
footer { margin-top: 20px; align-items: center; }
#star { float: right; margin: 0 0 6px 8px; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: #fff; }
#star.on { background: var(--sun); border-color: #f2d49b; color: #6b4a12; }
.askprice { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 8px; cursor: default; }
.askprice > * { grid-column: 1 !important; grid-row: auto !important; }
.askprice .row { display: flex; gap: 8px; }
.askprice input { font: 600 16px system-ui, sans-serif; flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #f2c9ab; background: #fff; color: var(--fg); }
.askprice button { font-size: 15px; font-weight: 700; padding: 10px 16px; border-radius: 12px; background: var(--orange); border: none; color: #fff; }
.find { grid-template-columns: minmax(0, 1fr); }
.find select { min-width: 0; }
.find button { flex: none; }
/* coloured tiles (score colours set inline by popup.js) keep their own readable text colour */
.tile[style] .tlabel, .tile[style] .tsub { color: inherit; opacity: .85; }
.tile[style] { box-shadow: none; }
.afford { padding: 12px 14px; border-radius: 16px; margin: 10px 0 4px; }
.afford b { font-size: 16px; } .afford small { font-size: 13px; }
.optin { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.optin input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.optin small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
