/* =========================================================
   Sommerhusejer.dk – Husejerportalen (nyt design)
   Alle klasser starter med "hp-" (husejer-portal), så de ikke
   kolliderer med Bootstrap eller den eksisterende CSS.
   Samme familie som admin-designet ("na-") og forsiden ("nd-").
   Version 1.2: faner (Tilbud / Alle parametre), neutral sammenligning uden "bedst"-mærker, tilbudskort, den rigtige formular i nyt look og AI-assistenten.
   ========================================================= */

.hp, .hp *, .hp *::before, .hp *::after,
.hp-modal, .hp-modal *, .hp-modal *::before, .hp-modal *::after,
.hp-toast, .hp-toast *, .hp-lb, .hp-lb * { box-sizing: border-box; }

/* Farverne skal også findes for dialog, besked og billedfremviser – de ligger direkte under <body> */
.hp, .hp-modal, .hp-toast, .hp-lb {
  --hp-bg: #f4f7f5;
  --hp-ink: #102033;
  --hp-muted: #64748b;
  --hp-line: #e3ece7;
  --hp-line-2: #edf2ef;
  --hp-line-d: #d7e3dd;
  --hp-green: #16875b;
  --hp-green-d: #12704b;
  --hp-green-2: #228258;
  --hp-pale: #eaf6ef;
  --hp-deep: #102f25;
  --hp-amber: #b45309;
  --hp-amber-bg: #fff4e5;
  --hp-red: #b42318;
  --hp-red-bg: #fde8e7;
  --hp-radius: 16px;
}

.hp {
  min-height: calc(100vh - 80px);
  padding: 50px 0 80px;
  background: var(--hp-bg);
  color: var(--hp-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.hp a { text-decoration: none; color: inherit; }
.hp h1, .hp h2, .hp h3, .hp h4, .hp p, .hp ul { margin: 0; padding: 0; font-family: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.hp ul { list-style: none; }
.hp button, .hp input, .hp select, .hp textarea { font-family: inherit; font-size: inherit; }
.hp img { max-width: 100%; display: block; }
.hp svg { flex: none; }
.hp b, .hp strong { font-weight: 800; }
.hp small, .hp em { font-style: normal; }
.hp [hidden] { display: none !important; }
html.hp-lock { overflow: hidden; }

/* ---------- ramme + menu ---------- */

.hp-shell { max-width: 1360px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start; }
.hp-main { min-width: 0; }
.hp-card[id], .hp-offers[id] { scroll-margin-top: 130px; }

.hp-side { position: sticky; top: 118px; background: var(--hp-deep); border-radius: 20px; padding: 16px 12px; color: #fff; box-shadow: 0 14px 35px rgba(16, 47, 37, .16); max-height: calc(100vh - 140px); overflow-y: auto; }
.hp-brand { display: flex; gap: 12px; align-items: center; padding: 4px 8px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 4px; color: #fff !important; }
.hp-brand i { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 13px; background: var(--hp-green-2); display: flex; align-items: center; justify-content: center; color: #fff; }
.hp-brand span { min-width: 0; }
.hp-brand b { display: block; font-size: 15px; font-weight: 800; color: #fff; line-height: 1.25; }
.hp-brand small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, .62); font-size: 12px; }
.hp-nav-h { display: block; padding: 14px 12px 4px; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: rgba(255, 255, 255, .52); }
.hp-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 7px 12px; margin-bottom: 2px; border-radius: 10px; color: rgba(255, 255, 255, .82) !important; font-size: 13.5px; font-weight: 650; transition: background-color .15s, color .15s, transform .15s; }
.hp-link:hover { background: rgba(255, 255, 255, .08); color: #fff !important; transform: translateX(2px); }
.hp-link.on { background: var(--hp-green-2); color: #fff !important; box-shadow: 0 8px 22px rgba(34, 130, 88, .28); }
.hp-link.on::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: -12px; width: 3px; border-radius: 0 4px 4px 0; background: #8ed3ae; }
.hp-side hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); margin: 12px 0 10px; opacity: 1; }
.hp-link.out { margin-bottom: 0; color: rgba(255, 255, 255, .72) !important; }
.hp-link.out:hover { background: rgba(220, 53, 69, .18); color: #ffd8dc !important; }

/* ---------- sidehoved ---------- */

.hp-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hp-top small { display: block; color: var(--hp-muted); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hp-top h1 { margin: 4px 0 0; font-size: 32px; line-height: 1.15; font-weight: 850; letter-spacing: -.025em; color: var(--hp-ink); }
.hp-top p { margin: 8px 0 0; max-width: 620px; color: var(--hp-muted); font-size: 15px; line-height: 1.55; }
.hp-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- knapper, piller, inputs ---------- */

.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--hp-line-d); background: #fff; color: var(--hp-ink) !important; font-size: 14px; font-weight: 750; line-height: 1.2; text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s, transform .15s; }
.hp-btn:hover { border-color: var(--hp-green); color: var(--hp-green) !important; }
.hp-btn.pri { background: var(--hp-green); border-color: var(--hp-green); color: #fff !important; box-shadow: 0 6px 16px rgba(22, 135, 91, .24); }
.hp-btn.pri:hover { background: var(--hp-green-d); border-color: var(--hp-green-d); color: #fff !important; transform: translateY(-1px); }
.hp-btn.done { background: var(--hp-pale); border-color: #bfe4ce; color: var(--hp-green-d) !important; cursor: default; }
.hp-btn.done:hover { border-color: #bfe4ce; transform: none; }
.hp-btn.red { color: var(--hp-red) !important; border-color: #f3c4c0; }
.hp-btn.red:hover { background: var(--hp-red-bg); border-color: var(--hp-red); color: var(--hp-red) !important; }
.hp-btn.red-solid { background: var(--hp-red); border-color: var(--hp-red); color: #fff !important; }
.hp-btn.red-solid:hover { background: #8f1c12; border-color: #8f1c12; color: #fff !important; }
.hp-btn.sm { min-height: 36px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.hp-btn.on { border-color: var(--hp-green); color: var(--hp-green) !important; background: #f3faf6; }
.hp-btn[disabled] { opacity: .62; cursor: not-allowed; transform: none; box-shadow: none; }
.hp-btn.done[disabled] { opacity: 1; }
.hp-btn.is-busy { position: relative; pointer-events: none; }
.hp-btn.is-busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: hp-spin .7s linear infinite; }
.hp-btn:focus-visible, .hp-chip:focus-visible, .hp-link:focus-visible, .hp-house:focus-visible, .hp-seg button:focus-visible, .hp-pick input:focus-visible + .hp-pick-box { outline: 3px solid rgba(22, 135, 91, .38); outline-offset: 2px; }
.hp-i.is-up { transform: rotate(180deg); }

.hp-link-btn, .hp-link2 { border: 0; background: none; padding: 0; color: var(--hp-green); font-weight: 750; cursor: pointer; }
.hp-bar-foot .hp-link { all: unset; cursor: pointer; color: var(--hp-green); font-weight: 750; font-size: 13px; }
.hp-bar-foot .hp-link:hover { text-decoration: underline; }

.hp-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hp-line-d); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 700; color: var(--hp-ink); cursor: pointer; line-height: 1.3; transition: border-color .15s, background-color .15s; }
.hp-chip:hover { border-color: var(--hp-green); }
.hp-chip.on { background: var(--hp-green); border-color: var(--hp-green); color: #fff; }

/* ---------- tal og trin ---------- */

.hp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.hp-kpi { background: #fff; border: 1px solid var(--hp-line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.hp-kpi span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--hp-muted); font-weight: 700; }
.hp-kpi span i { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: var(--hp-pale); color: var(--hp-green); display: flex; align-items: center; justify-content: center; }
.hp-kpi b { display: block; margin-top: 10px; font-size: 26px; font-weight: 850; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.hp-kpi small { display: block; margin-top: 3px; color: var(--hp-muted); font-size: 12.5px; }

.hp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--hp-line); border-radius: 16px; padding: 20px 8px 18px; margin-bottom: 22px; }
.hp-step { position: relative; padding: 0 14px; min-width: 0; }
.hp-step > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--hp-line-d); background: #fff; color: #94a3b8; font-size: 13px; font-weight: 800; font-style: normal; position: relative; z-index: 1; }
.hp-step:not(:last-child)::after { content: ""; position: absolute; left: 52px; right: -6px; top: 14px; height: 2px; background: var(--hp-line-d); border-radius: 2px; }
.hp-step.is-done:not(:last-child)::after { background: var(--hp-green); }
.hp-step.is-done > i { background: var(--hp-green); border-color: var(--hp-green); color: #fff; }
.hp-step.is-now > i { border-color: var(--hp-green); color: var(--hp-green); box-shadow: 0 0 0 5px rgba(22, 135, 91, .13); }
.hp-step > div { margin-top: 10px; }
.hp-step b { display: block; font-size: 14px; font-weight: 800; line-height: 1.3; }
.hp-step small { display: block; margin-top: 2px; color: var(--hp-muted); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
.hp-step.is-todo b { color: #64748b; }

/* ---------- sommerhus-vælger ---------- */

.hp-houses { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 10px; scrollbar-width: thin; }
.hp-house { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; min-width: 240px; max-width: 320px; padding: 10px 14px 10px 10px; border-radius: 14px; border: 1px solid var(--hp-line); background: #fff; color: var(--hp-ink); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.hp-house:hover { border-color: var(--hp-green); }
.hp-house.on { border-color: var(--hp-green); background: #f3faf6; box-shadow: 0 0 0 1px var(--hp-green), 0 8px 22px rgba(22, 135, 91, .12); }
.hp-house-tx { min-width: 0; }
.hp-house-tx b { display: block; font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-house-tx small { display: block; color: var(--hp-muted); font-size: 12.5px; }
.hp-thumb { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 12px; overflow: hidden; background: var(--hp-pale); display: grid; place-items: center; color: var(--hp-green); }
.hp-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- sektion + faner ---------- */

.hp-sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.hp-sec-h h2 { font-size: 22px; font-weight: 850; letter-spacing: -.018em; }
.hp-sec-h p { margin-top: 3px; max-width: 640px; color: var(--hp-muted); font-size: 14px; line-height: 1.5; }
.hp-seg { display: inline-flex; background: #e6eeea; border-radius: 13px; padding: 4px; gap: 2px; }
.hp-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; padding: 9px 18px; border-radius: 10px; font-size: 14px; font-weight: 750; color: #475569; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; }
.hp-seg button svg { color: #7c8f87; }
.hp-seg button:hover { color: var(--hp-ink); }
.hp-seg button.on { background: #fff; color: var(--hp-ink); box-shadow: 0 1px 4px rgba(16, 47, 37, .14); }
.hp-seg button.on svg { color: var(--hp-green); }

.hp-linkb { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; color: var(--hp-green); font-size: inherit; font-weight: 750; cursor: pointer; }
.hp-linkb:hover { text-decoration: underline; }
.hp-linkb:focus-visible { outline: 3px solid rgba(22, 135, 91, .38); outline-offset: 2px; border-radius: 4px; }

.hp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* fremgangsstrimlen er slankere end før – sammenligningen skal ikke skubbes ned */
.hp .hp-steps { padding: 14px 6px 12px; margin-bottom: 18px; }
.hp .hp-step > div { margin-top: 8px; }
.hp .hp-step small { margin-top: 1px; }
.hp-steps-now { display: none; }

/* ---------- "Hvad er vigtigst for dig?" – vinder-felter ---------- */

.hp-pri { background: #fff; border: 1px solid var(--hp-line); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.hp-pri-h { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 16px; margin-bottom: 12px; }
.hp-pri-h b { font-size: 15.5px; font-weight: 850; }
.hp-pri-h small { color: var(--hp-muted); font-size: 13px; font-weight: 600; }
.hp-pri-g { display: grid; grid-template-columns: repeat(var(--k, 5), minmax(0, 1fr)); gap: 10px; }
.hp-pt { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; padding: 13px 14px 14px; border: 1px solid var(--hp-line-d); border-radius: 14px; background: #fff; color: var(--hp-ink); text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.hp-pt:hover { border-color: var(--hp-green); }
.hp-pt:focus-visible { outline: 3px solid rgba(22, 135, 91, .38); outline-offset: 2px; }
.hp-pt.on { border-color: var(--hp-green); background: #f3faf6; box-shadow: 0 0 0 1px var(--hp-green); }
.hp-pt-h { display: flex; align-items: center; gap: 9px; min-width: 0; }
.hp-pt-h > i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; background: var(--hp-pale); color: var(--hp-green); display: grid; place-items: center; transition: background-color .15s, color .15s; }
.hp-pt.on .hp-pt-h > i { background: var(--hp-green); color: #fff; }
.hp-pt small { display: block; min-width: 0; color: var(--hp-muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; }
.hp-pt b { display: block; font-size: 15px; font-weight: 850; line-height: 1.3; overflow-wrap: break-word; }
.hp-pt em { display: block; margin-top: -5px; color: var(--hp-muted); font-size: 12.5px; font-weight: 600; font-style: normal; line-height: 1.35; }

/* ---------- filtre (gemt væk indtil man har brug for dem) ---------- */

.hp-ft { margin: 0 0 16px; }
.hp-ft-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--hp-muted); font-size: 13px; font-weight: 650; }
.hp-ft-count b { color: var(--hp-ink); font-weight: 800; }
.hp-ft-row .hp-linkb { font-size: 13px; }
.hp-ft-r { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.hp-ft-r .hp-chip { height: 40px; padding: 0 15px; }
.hp-btn.hp-ovb { min-height: 40px; padding: 0 16px; gap: 9px; border-color: #b9dcc9; background: var(--hp-pale); color: var(--hp-green-d) !important; font-weight: 800; }
.hp-btn.hp-ovb:hover { border-color: var(--hp-green); background: #def1e6; color: var(--hp-green-d) !important; }
.hp-ft-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); gap: 12px 14px; align-items: end; margin-top: 10px; padding: 16px; background: #fff; border: 1px solid var(--hp-line); border-radius: 16px; }
.hp-ft-panel[hidden] { display: none; }
.hp-fld { display: grid; gap: 6px; min-width: 0; color: #475569; font-size: 12px; font-weight: 750; }
.hp .hp-fld input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--hp-line-d); border-radius: 10px; background: #fff; box-shadow: none; color: var(--hp-ink); font-size: 14px; font-weight: 600; }
.hp .hp-fld input:focus { outline: 3px solid rgba(22, 135, 91, .25); border-color: var(--hp-green); }
.hp-fld-i { position: relative; display: block; }
.hp .hp-fld-i input { padding-right: 40px; }
.hp-fld-i em { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--hp-muted); font-size: 13px; font-weight: 700; pointer-events: none; }
.hp-tg { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; border: 1px solid var(--hp-line-d); border-radius: 10px; background: #fff; color: var(--hp-ink); font-size: 13.5px; font-weight: 700; line-height: 1.25; cursor: pointer; }
.hp-tg:hover { border-color: var(--hp-green); }
.hp .hp-tg input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--hp-green); }

/* ---------- små byggeklodser: logo, mærker ---------- */

.hp-logo { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 16px; border: 1px solid var(--hp-line); background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--hp-green); font-size: 20px; font-weight: 850; }
.hp-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.hp-logo-fb { background: var(--hp-pale); border-color: #cfe7da; }
.hp-logo.sm { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; font-size: 14px; }
.hp-logo.sm img { padding: 4px; }

.hp-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hp-flag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; line-height: 1; white-space: nowrap; }
.hp-flag.ok { background: var(--hp-green); color: #fff; }

.hp-bm { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 7px; border-radius: 50%; background: var(--hp-green); color: #fff; vertical-align: -2px; }
.hp-bm svg { width: 10px; height: 10px; stroke-width: 3.2; }

.hp-meter { display: block; height: 7px; margin-top: 9px; border-radius: 99px; background: #e9f0ec; overflow: hidden; }
.hp-meter u { display: block; height: 100%; border-radius: inherit; background: #a9bdb3; text-decoration: none; }
.hp-pips { display: flex; gap: 3px; margin-top: 10px; }
.hp-pips i { flex: 1 1 0; max-width: 12px; height: 7px; border-radius: 3px; background: #e3ebe7; }
.hp-pips i.on { background: #a9bdb3; }

/* ---------- tavlen: bureauerne side om side ---------- */

.hp-board { background: #fff; border: 1px solid var(--hp-line); border-radius: 18px; overflow: clip; }
.hp-board-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; border-bottom: 1px solid var(--hp-line-2); color: var(--hp-muted); font-size: 13px; font-weight: 650; }
.hp-board-top b { color: var(--hp-ink); font-weight: 800; }
.hp-lg { display: inline-flex; align-items: center; gap: 8px; }
.hp-lg i { width: 16px; height: 16px; border-radius: 5px; background: #dcf2e6; border: 1px solid #9bd3b6; }
.hp-lg.is-d i { width: 5px; border: 0; border-radius: 2px; background: #f2b24c; }
.hp-lg.is-hint { gap: 6px; color: var(--hp-green-d); }
.hp-lg.is-hint svg { color: var(--hp-green); }
.hp-bcount .hp-linkb { margin-left: 6px; font-size: 13px; }
.hp-bfilt { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hp-hint { display: none; align-items: center; gap: 6px; color: var(--hp-green-d); font-size: 12.5px; font-weight: 700; }
.hp-board.has-scroll .hp-hint { display: inline-flex; }

.hp-bscroll { position: relative; overflow-x: visible; }
.hp-bscroll.is-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }

.hp-bt { --hp-lab: 196px; --hp-col: 168px; width: 100%; min-width: calc(var(--hp-lab) + var(--n, 3) * var(--hp-col)); table-layout: fixed; border-collapse: separate; border-spacing: 0; margin: 0; }
.hp-bt col.hp-bt-c0 { width: var(--hp-lab); }
.hp-bt th, .hp-bt td { padding: 11px 14px; font-size: 14px; line-height: 1.4; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--hp-line-2); background: #fff; color: var(--hp-ink); overflow-wrap: anywhere; }
.hp-bt td { font-weight: 650; }
.hp-bt th[scope="row"] { font-weight: 700; color: #334155; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.hp-bt th[scope="row"] small { display: block; margin-top: 2px; color: var(--hp-muted); font-size: 12px; font-weight: 600; line-height: 1.35; }
.hp-bt td small { display: block; margin-top: 2px; color: var(--hp-muted); font-size: 12px; font-weight: 600; line-height: 1.35; }
.hp-bt tbody tr:last-child th, .hp-bt tbody tr:last-child td { border-bottom: 0; }

/* hoved med bureauerne – bliver siddende øverst, når tavlen er i fuld bredde */
.hp-bt thead th { position: sticky; top: var(--hp-stick, 104px); z-index: 6; padding: 12px 14px; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hp-line); }
.hp-bt-n { color: var(--hp-muted); font-size: 12.5px; font-weight: 700; }
.hp-bt-agi { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hp-bt-agi .hp-logo.sm { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; font-size: 13px; }
.hp-bt-agn { display: block; min-width: 0; font-size: 14px; font-weight: 850; line-height: 1.25; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.hp-bt-ag .hp-flag { margin-top: 8px; }
.hp-bt-ag.is-accepted { box-shadow: inset 0 3px 0 var(--hp-green); }

/* store tal (indtjening og service) */
.hp-bt-hero th, .hp-bt-hero td { padding-top: 16px; padding-bottom: 16px; }
.hp-bt-hero th { font-size: 14px; color: var(--hp-ink); }
.hp-bt-hero td strong { display: block; font-size: 21px; line-height: 1.15; font-weight: 850; letter-spacing: -.02em; color: var(--hp-ink); white-space: nowrap; }
.hp-bt-hero td strong em { color: var(--hp-muted); font-size: 13px; font-weight: 700; font-style: normal; letter-spacing: 0; }
.hp-bt-hero.is-service td strong { font-size: 19px; }
.hp-bt-hero td.is-best strong { color: var(--hp-green-d); }
.hp-bt-hero td.is-best .hp-meter u, .hp-bt td.is-best .hp-pips i.on { background: var(--hp-green); }

/* række med navn og stjerne */
.hp-rt { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.hp-rt-l { min-width: 0; }
.hp-star { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; margin: -4px -8px -4px 0; padding: 0; border: 0; border-radius: 9px; background: none; color: #a5b4ac; cursor: pointer; transition: color .15s, background-color .15s; }
.hp-star:hover { background: #eaf3ee; color: var(--hp-green); }
.hp-star.on { color: var(--hp-green); }
.hp-star:focus-visible { outline: 3px solid rgba(22, 135, 91, .38); outline-offset: 0; }

/* et punkt kunden selv har markeret som vigtigt */
.hp-bt tr.is-mine th[scope="row"] { background-color: #f3faf6; color: var(--hp-ink); background-image: linear-gradient(90deg, var(--hp-green) 3px, transparent 3px); }

/* "Vælg tilbud"-knapper */
.hp-bt-act th, .hp-bt-act td { background: #fafcfb; padding: 12px 14px; border-bottom: 1px solid var(--hp-line); }
.hp-bt-act td .hp-btn { width: 100%; }
.hp-bt tfoot .hp-bt-act th, .hp-bt tfoot .hp-bt-act td { border-bottom: 0; border-top: 1px solid var(--hp-line); }

/* overskrifter for hvert afsnit – kan foldes sammen */
.hp-bt-sec th { padding: 0; background: #f2f7f4; border-bottom: 1px solid var(--hp-line-2); }
.hp-bt-sec button { position: sticky; left: 0; display: inline-flex; align-items: center; gap: 9px; padding: 11px 14px; border: 0; background: none; color: #475569; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.hp-bt-sec button:hover { color: var(--hp-ink); }
.hp-bt-sec button:focus-visible { outline: 3px solid rgba(22, 135, 91, .38); outline-offset: -3px; border-radius: 8px; }
.hp-bt-sec button em { color: var(--hp-muted); font-size: 11.5px; font-weight: 700; font-style: normal; letter-spacing: 0; text-transform: none; }
.hp-sec-i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--hp-green); color: #fff; }

/* i de markerede punkter er den mest fordelagtige værdi grøn */
.hp-bt td.is-best { background: #eaf6ef; color: var(--hp-green-d); font-weight: 800; }
/* gul kant: tilbuddene er forskellige i rækken */
.hp-board.is-all .hp-bt tr.is-diff:not(.is-mine) th[scope="row"] { background-image: linear-gradient(90deg, #f2b24c 3px, transparent 3px); }

/* ja / nej */
.hp-yn { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 16px; font-weight: 800; line-height: 1; }
.hp-yn.is-yes { background: var(--hp-green); color: #fff; }
.hp-yn.is-no { color: #b3c0b9; }

/* tekster fra bureauet */
.hp-bt .hp-bt-tx { vertical-align: top; font-size: 13.5px; font-weight: 500; line-height: 1.55; color: #334155; }
.hp-clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.hp-none { color: #94a3b8; font-weight: 600; }
.hp-fl { display: flex; align-items: center; gap: 7px; padding: 4px 0; color: var(--hp-green-d) !important; font-size: 13px; font-weight: 700; min-width: 0; }
.hp-fl svg { flex: none; }
.hp-fl span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-fl:hover span { text-decoration: underline; }
.hp-rl { display: grid; gap: 6px; }
.hp-rl li { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.hp-rl li svg { margin-top: 3px; color: var(--hp-green); }
.hp-bt-more th, .hp-bt-more td { background: #fafcfb; }

/* vandret rul: første kolonne bliver stående */
.hp-bscroll.is-scroll .hp-bt thead th { position: static; top: auto; }
.hp-bscroll.is-scroll .hp-bt thead th.hp-bt-corner,
.hp-bscroll.is-scroll .hp-bt th[scope="row"] { position: sticky; top: auto; left: 0; z-index: 3; box-shadow: 1px 0 0 var(--hp-line-2); }
.hp-bscroll.is-scroll .hp-bt thead th.hp-bt-corner { z-index: 4; }
.hp-bscroll.is-scroll .hp-bt tr.hp-bt-sec th { position: static; box-shadow: none; }

/* kopi af hovedet: bliver stående under sidens menu, mens man ruller ned, og glider sidelæns med tabellen */
.hp-bsh { display: none; position: fixed; z-index: 40; overflow: hidden; background: #fff; border-bottom: 1px solid var(--hp-line); box-shadow: 0 12px 20px -14px rgba(16, 32, 51, .45); pointer-events: none; }
.hp-bsh.is-on { display: block; }
.hp-bsh .hp-bt { margin: 0; transform: translateX(calc(var(--sl, 0px) * -1)); }
.hp-bsh .hp-bt thead th { position: relative; top: auto; z-index: 1; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hp-bsh .hp-bt thead th.hp-bt-corner { z-index: 3; transform: translateX(var(--sl, 0px)); box-shadow: 1px 0 0 var(--hp-line-2); }

/* ---------- tavlen: knapper i topbjælken og valg af tilbud ---------- */

.hp-bt-tools { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.hp-bt-tools .hp-chip { height: 36px; }

/* hvilke tilbud er med i tavlen */
.hp-inc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.hp-inc-l { margin-right: 2px; color: var(--hp-muted); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.hp-ic { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 12px 5px 6px; border: 1px solid var(--hp-line-d); border-radius: 999px; background: #fff; color: #64748b; font-size: 13px; font-weight: 750; line-height: 1.2; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.hp-ic:hover { border-color: var(--hp-green); }
.hp-ic:focus-visible { outline: 3px solid rgba(22, 135, 91, .38); outline-offset: 2px; }
.hp-ic.on { border-color: var(--hp-green); background: #f3faf6; color: var(--hp-ink); }
.hp-ic.on svg { color: var(--hp-green); }
.hp-ic > span:not(.hp-logo) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-ic .hp-logo { width: 26px; height: 26px; flex-basis: 26px; border-radius: 50%; font-size: 10px; }
.hp-ic .hp-logo img { padding: 3px; }

/* ---------- tilbudskort ---------- */

.hp-cards { margin-top: 4px; }
.hp-ch { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin: 4px 2px 12px; }
.hp-ch h3 { font-size: 18px; font-weight: 850; letter-spacing: -.012em; }
.hp-ch p { color: var(--hp-muted); font-size: 13px; font-weight: 600; }
.hp-ch p b { color: var(--hp-ink); font-weight: 800; }
.hp-ch .hp-linkb { margin-left: 10px; font-size: 13px; }

.hp-list { display: grid; gap: 16px; }
.hp-oc { container: hpoc / inline-size; position: relative; background: #fff; border: 1px solid var(--hp-line); border-radius: 20px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.hp-oc:hover { box-shadow: 0 16px 38px rgba(16, 47, 37, .09); }
.hp-oc.is-accepted { border-color: var(--hp-green); box-shadow: 0 0 0 1px var(--hp-green); }
.hp-oc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; padding: 20px 22px 18px; }
.hp-oc-ag { display: flex; align-items: flex-start; gap: 16px; min-width: 0; flex: 1 1 auto; }
.hp-oc-agt { min-width: 0; }
.hp-oc-agt h3 { font-size: 20px; font-weight: 850; letter-spacing: -.015em; line-height: 1.25; }
.hp-oc-agt p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 540px; margin-top: 8px; color: var(--hp-muted); font-size: 13.5px; line-height: 1.55; }
.hp-oc-earn { flex: 0 0 auto; width: 270px; padding: 14px 16px 15px; border-radius: 16px; background: linear-gradient(160deg, #f6fbf8, #eaf6ef); border: 1px solid #cfe7da; }
.hp-oc-earn > span:first-child { display: block; color: #3d6a55; font-size: 12px; font-weight: 750; }
.hp-oc-earn strong { display: block; margin-top: 3px; font-size: 28px; line-height: 1.12; font-weight: 850; letter-spacing: -.025em; color: var(--hp-green-d); white-space: nowrap; }
.hp-oc-earn strong em { color: #3d6a55; font-size: 13px; font-weight: 700; font-style: normal; letter-spacing: 0; }
.hp-oc-earn .hp-meter { background: #d6e9de; }

.hp-oc-fin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; background: #fafcfb; border-top: 1px solid var(--hp-line-2); border-bottom: 1px solid var(--hp-line-2); }
.hp-oc-fin > div { min-width: 0; padding: 13px 22px; }
.hp-oc-fin > div + div { border-left: 1px solid var(--hp-line-2); }
.hp-oc-fin dt { color: var(--hp-muted); font-size: 12px; font-weight: 650; }
.hp-oc-fin dd { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 2px 0 0; font-size: 16px; font-weight: 850; overflow-wrap: anywhere; }

.hp-oc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hp-line-2); border-bottom: 1px solid var(--hp-line-2); }
.hp-tile { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 15px 18px 16px; background: #fff; }
.hp-tile-h { display: flex; align-items: center; gap: 10px; color: #475569; font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.hp-tile-h i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; background: var(--hp-pale); color: var(--hp-green); display: grid; place-items: center; }
.hp-tile-v { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; }
.hp-tile strong { font-size: 16px; line-height: 1.25; font-weight: 850; overflow-wrap: anywhere; }
.hp-tile small { color: var(--hp-muted); font-size: 12.5px; line-height: 1.4; }

.hp-oc-recs { margin: 0; padding: 14px 22px; border-bottom: 1px solid var(--hp-line-2); }
.hp-oc-foot { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 22px; }
.hp-oc-foot .hp-btn:first-child { margin-right: auto; }

@container hpoc (max-width: 900px) {
  .hp-oc-top { flex-direction: column; gap: 16px; }
  .hp-oc-earn { width: 100%; }
}
@container hpoc (max-width: 760px) {
  .hp-oc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container hpoc (max-width: 560px) {
  .hp-oc-top { padding: 16px 16px 14px; }
  .hp-oc-ag { gap: 12px; }
  .hp-oc-agt h3 { font-size: 18px; }
  .hp-logo { width: 52px; height: 52px; flex-basis: 52px; border-radius: 14px; }
  .hp-oc-earn strong { font-size: 25px; }
  .hp-oc-fin { grid-template-columns: minmax(0, 1fr); }
  .hp-oc-fin > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; }
  .hp-oc-fin > div + div { border-left: 0; border-top: 1px solid var(--hp-line-2); }
  .hp-oc-fin dd { margin: 0; justify-content: flex-end; text-align: right; font-size: 15px; }
  .hp-tile { padding: 13px 14px 14px; }
  .hp-tile-h { gap: 8px; font-size: 12px; }
  .hp-tile-h i { width: 26px; height: 26px; flex-basis: 26px; border-radius: 8px; }
  .hp-tile strong { font-size: 15px; }
  .hp-oc-recs { padding: 12px 16px; }
  .hp-oc-foot { padding: 12px 16px; }
  .hp-oc-foot .hp-btn { flex: 1 1 100%; margin-right: 0; }
}

/* ---------- besked, vilkår og filer (kortets udfoldning og "Læs hele tilbuddet") ---------- */

.hp-panel { padding: 20px 22px 22px; border-top: 1px solid var(--hp-line-2); background: #fafcfb; }
.hp-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hp-msg, .hp-terms { background: #fff; border: 1px solid var(--hp-line); border-radius: 14px; padding: 16px; min-width: 0; }
.hp-msg { display: flex; gap: 14px; }
.hp-av { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--hp-green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.hp-msg small, .hp-terms small { display: block; color: var(--hp-green); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hp-msg b, .hp-terms b { display: block; margin-top: 2px; font-size: 15px; font-weight: 800; }
.hp-msg p, .hp-terms p { margin: 8px 0 0; color: #334155; font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.hp-recs { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin: 14px 0 0; }
.hp-recs > b { flex: 0 0 auto; padding-top: 4px; font-size: 13px; }
.hp-recs > div { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.hp-recs span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid #cfe7da; color: var(--hp-green-d); font-size: 12.5px; font-weight: 750; }
.hp-files { margin-top: 16px; }
.hp-files-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hp-files-h b { font-size: 14px; }
.hp-files-h span { color: var(--hp-muted); font-size: 12.5px; }
.hp-files-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hp-file { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #fff; border: 1px solid var(--hp-line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; min-width: 0; color: var(--hp-ink); text-decoration: none; }
.hp-file:hover { border-color: var(--hp-green); box-shadow: 0 6px 16px rgba(16, 47, 37, .07); }
.hp-file > i { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: var(--hp-pale); color: var(--hp-green); display: grid; place-items: center; }
.hp-file > span { min-width: 0; flex: 1; }
.hp-file b { display: block; font-size: 13.5px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-file small { display: block; color: var(--hp-muted); font-size: 12px; }
.hp-file em { display: inline-flex; align-items: center; gap: 4px; color: var(--hp-green); font-size: 13px; font-weight: 800; font-style: normal; }
.hp-files-empty { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--hp-line-d); border-radius: 12px; color: var(--hp-muted); font-size: 13.5px; background: #fff; }

.hp-note { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 16px 20px; background: var(--hp-pale); border: 1px solid #cfe7da; border-radius: 14px; }
.hp-note b { display: block; font-size: 15px; color: var(--hp-green-d); }
.hp-note span { color: #3d6a55; font-size: 13.5px; }

.hp-empty { background: #fff; border: 1px dashed var(--hp-line-d); border-radius: 18px; padding: 44px 24px; text-align: center; }
.hp-empty > i { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; background: var(--hp-pale); color: var(--hp-green); display: grid; place-items: center; }
.hp-empty h3 { font-size: 19px; font-weight: 850; }
.hp-empty p { max-width: 460px; margin: 6px auto 16px; color: var(--hp-muted); font-size: 14.5px; line-height: 1.55; }
.hp-empty-s { margin: 18px; padding: 30px 20px; border: 0; background: #fafcfb; }

/* ---------- AI-assistenten ---------- */

.hp-ai, .hp-ai *, .hp-ai *::before, .hp-ai *::after { box-sizing: border-box; }
.hp-ai {
  --hp-ink: #102033; --hp-muted: #64748b; --hp-line: #e3ece7; --hp-line-d: #d7e3dd; --hp-green: #16875b; --hp-green-d: #12704b;
  --hp-pale: #eaf6ef; --hp-deep: #102f25; --hp-red: #b42318;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px; line-height: 1.45; color: var(--hp-ink); -webkit-font-smoothing: antialiased;
}
.hp-ai button, .hp-ai textarea { font-family: inherit; font-size: inherit; }
.hp-ai svg { flex: none; }
.hp-ai [hidden] { display: none !important; }
.hp-ai p, .hp-ai ul, .hp-ai b { margin: 0; }

.hp-ai-fab { position: fixed; right: 22px; bottom: 22px; z-index: 1100; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #1a9566, #0f5c4a); color: #fff; font-size: 14.5px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 0 14px 34px rgba(16, 47, 37, .32), 0 2px 6px rgba(16, 47, 37, .2); transition: transform .15s, box-shadow .15s; }
.hp-ai-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(16, 47, 37, .36), 0 2px 6px rgba(16, 47, 37, .2); }
.hp-ai-fab:focus-visible { outline: 3px solid rgba(22, 135, 91, .55); outline-offset: 3px; }
.hp-ai.is-open .hp-ai-fab { display: none; }

.hp-ai-panel { position: fixed; right: 22px; bottom: 22px; z-index: 1100; display: flex; flex-direction: column; width: 396px; max-width: calc(100vw - 24px); height: 640px; max-height: calc(100vh - 44px); background: #fff; border: 1px solid var(--hp-line); border-radius: 22px; box-shadow: 0 30px 70px rgba(16, 47, 37, .28), 0 4px 14px rgba(16, 47, 37, .12); overflow: hidden; animation: hp-ai-in .18s ease-out; }
@keyframes hp-ai-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.hp-ai-h { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; background: var(--hp-deep); color: #fff; }
.hp-ai-av { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; background: var(--hp-green); color: #fff; display: grid; place-items: center; }
.hp-ai-h > div { flex: 1; min-width: 0; }
.hp-ai-h b { display: block; font-size: 15px; font-weight: 800; line-height: 1.25; }
.hp-ai-h small { display: block; color: rgba(255, 255, 255, .7); font-size: 12px; line-height: 1.3; }
.hp-ai-ib { width: 34px; height: 34px; flex: 0 0 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .15s; }
.hp-ai-ib:hover { background: rgba(255, 255, 255, .22); }
.hp-ai-ib:focus-visible { outline: 3px solid rgba(255, 255, 255, .6); outline-offset: 1px; }

.hp-ai-log { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 14px 8px; overflow-y: auto; overscroll-behavior: contain; background: #f7faf8; }
.hp-ai-m { display: flex; align-items: flex-end; gap: 8px; }
.hp-ai-m.is-u { justify-content: flex-end; }
.hp-ai-mav { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: var(--hp-pale); color: var(--hp-green); display: grid; place-items: center; }
.hp-ai-m.is-e .hp-ai-mav { background: #fde8e7; color: var(--hp-red); }
.hp-ai-mb { max-width: calc(100% - 32px); padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.hp-ai-m.is-a .hp-ai-mb { background: #fff; border: 1px solid var(--hp-line); border-bottom-left-radius: 5px; }
.hp-ai-m.is-u .hp-ai-mb { max-width: 86%; background: var(--hp-green); color: #fff; border-bottom-right-radius: 5px; }
.hp-ai-m.is-e .hp-ai-mb { background: #fff6f5; border: 1px solid #f3c4c0; color: #7a1a12; border-bottom-left-radius: 5px; }
.hp-ai-mb p + p, .hp-ai-mb p + ul, .hp-ai-mb ul + p { margin-top: 8px; }
.hp-ai-mb ul { display: grid; gap: 4px; padding-left: 18px; list-style: disc; }
.hp-ai-mb strong { font-weight: 800; }
.hp-ai-mb .hp-linkb { margin-top: 8px; font-size: 13px; }
.hp-ai-m.is-typing .hp-ai-mb { display: flex; align-items: center; gap: 4px; padding: 15px 14px; }
.hp-ai-m.is-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9bb3a8; animation: hp-ai-dot 1s infinite ease-in-out; }
.hp-ai-m.is-typing i:nth-child(2) { animation-delay: .15s; }
.hp-ai-m.is-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hp-ai-dot { 0%, 80%, 100% { transform: scale(.7); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

.hp-ai-sg { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 14px 12px; background: #f7faf8; }
.hp-ai-chip { border: 1px solid #cfe7da; border-radius: 999px; background: #fff; color: var(--hp-green-d); padding: 7px 13px; font-size: 13px; font-weight: 700; line-height: 1.3; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.hp-ai-chip:hover { border-color: var(--hp-green); background: #f3faf6; }

.hp-ai-f { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--hp-line); background: #fff; }
.hp-ai-f textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 13px; border: 1px solid var(--hp-line-d); border-radius: 14px; background: #fff; color: var(--hp-ink); font-size: 14.5px; line-height: 1.4; resize: none; box-shadow: none; }
.hp-ai-f textarea:focus { outline: 3px solid rgba(22, 135, 91, .25); border-color: var(--hp-green); }
.hp-ai-send { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 14px; background: var(--hp-green); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .15s; }
.hp-ai-send:hover { background: var(--hp-green-d); }
.hp-ai-send:disabled { opacity: .5; cursor: not-allowed; }
.hp-ai-send:focus-visible { outline: 3px solid rgba(22, 135, 91, .5); outline-offset: 2px; }
.hp-ai-ft { padding: 0 14px 12px; background: #fff; color: #94a3b8; font-size: 11.5px; line-height: 1.4; }

/* ---------- dialog, besked, fremviser ---------- */

.hp-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #102033; }
.hp-modal-bd { position: absolute; inset: 0; background: rgba(16, 47, 37, .58); backdrop-filter: blur(2px); animation: hp-fade .18s ease-out; }
.hp-modal-box { position: relative; width: min(480px, 100%); background: #fff; border-radius: 20px; padding: 26px 26px 22px; box-shadow: 0 30px 80px rgba(16, 47, 37, .38); animation: hp-pop .2s ease-out; outline: 0; }
.hp-modal-ic { width: 52px; height: 52px; border-radius: 16px; background: #eaf6ef; color: #16875b; display: grid; place-items: center; margin-bottom: 14px; }
.hp-modal-ic.is-danger { background: #fde8e7; color: #b42318; }
.hp-modal-box h3 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 850; letter-spacing: -.015em; color: #102033; }
.hp-modal-tx { margin-top: 10px; color: #334155; font-size: 14.5px; line-height: 1.6; }
.hp-modal-tx p { margin: 0 0 8px; }
.hp-modal-tx .hp-modal-sub { padding: 10px 12px; border-radius: 12px; background: #eaf6ef; color: #12704b; font-size: 13.5px; font-weight: 650; }
.hp-modal-err { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fde8e7; color: #8f1c12; font-size: 13.5px; font-weight: 650; }
.hp-modal-ac { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hp-modal .hp-btn { font-family: inherit; }

.hp-toast { position: fixed; top: 118px; right: 20px; z-index: 1250; display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 32px)); padding: 13px 16px; border-radius: 14px; background: var(--hp-deep, #102f25); color: #fff; font-family: Inter, ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; font-weight: 650; line-height: 1.4; box-shadow: 0 18px 44px rgba(16, 47, 37, .35); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.hp-toast.is-on { opacity: 1; transform: none; }
.hp-toast svg { color: #8ed3ae; }
.hp-toast.is-err { background: #8f1c12; }
.hp-toast.is-err svg { color: #ffd8dc; }

.hp-lb { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; background: rgba(8, 20, 15, .9); padding: 56px 16px 40px; animation: hp-fade .18s ease-out; }
.hp-lb img { max-width: min(1100px, 100%); max-height: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); object-fit: contain; }
.hp-lb-x, .hp-lb-n { position: absolute; border: 0; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hp-lb-x { top: 14px; right: 14px; }
.hp-lb-n { top: 50%; margin-top: -22px; }
.hp-lb-n.prev { left: 14px; transform: scaleX(-1); }
.hp-lb-n.next { right: 14px; }
.hp-lb-x:hover, .hp-lb-n:hover { background: rgba(255, 255, 255, .26); }
.hp-lb-c { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 650; font-family: Inter, ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif; }

@keyframes hp-spin { to { transform: rotate(360deg); } }
@keyframes hp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hp-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hp-rise { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- kort og formularer (profil, tilføj sommerhus) ---------- */

.hp-card { background: #fff; border: 1px solid var(--hp-line); border-radius: 18px; overflow: hidden; margin-bottom: 20px; }
.hp-card-h { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--hp-line-2); }
.hp-card-h > i { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; background: var(--hp-pale); color: var(--hp-green); display: grid; place-items: center; }
.hp-card-h h2 { font-size: 18px; font-weight: 850; letter-spacing: -.01em; }
.hp-card-h p { margin-top: 2px; color: var(--hp-muted); font-size: 13px; }
.hp-card-b { padding: 22px; }
.hp-grid2 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.hp-grid2 .hp-card { margin-bottom: 0; }

.hp-field { margin-bottom: 18px; }
.hp-field:last-of-type { margin-bottom: 0; }
.hp-label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 800; color: #17243a; }
.hp-input-wrap { position: relative; }
.hp-input-ic { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); display: inline-flex; color: #7c8c84; pointer-events: none; }
.hp .hp-input { display: block; width: 100%; height: 50px; padding: 0 16px 0 46px; border: 1px solid var(--hp-line-d); border-radius: 12px; background: #fafcfb; color: var(--hp-ink); font-size: 15px; box-shadow: none; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.hp .hp-input:focus { border-color: var(--hp-green); outline: 0; background: #fff; box-shadow: 0 0 0 4px rgba(22, 135, 91, .12); }
.hp .hp-input.input-validation-error { border-color: #e0a09a; background: #fff9f8; }
.hp .hp-input.no-ic { padding-left: 16px; }
.hp-err { display: block; margin-top: 6px; color: var(--hp-red); font-size: 12.5px; font-weight: 700; }
.hp-err:empty { display: none; }
.hp-help { color: var(--hp-muted); font-size: 12.5px; }
.hp-help.is-warn { color: var(--hp-amber); font-weight: 650; }
.hp-form-foot { display: flex; justify-content: flex-end; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hp-line-2); }

.hp-alert { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; font-weight: 650; line-height: 1.45; transition: opacity .4s, max-height .4s, margin .4s, padding .4s; max-height: 200px; overflow: hidden; }
.hp-alert svg { margin-top: 1px; }
.hp-alert.ok { background: #edf9f2; border: 1px solid #bfe4ce; color: #176b49; }
.hp-alert.err { background: #fff4f4; border: 1px solid #efc5c5; color: #a52b2b; }
.hp-alert.info { background: #f2f8fc; border: 1px solid #cbdde8; color: #285e7a; }
.hp-alert.is-gone { opacity: 0; max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }

.hp-hbox { border: 1px solid var(--hp-line); border-radius: 16px; overflow: hidden; background: #fff; }
.hp-hbox + .hp-hbox { margin-top: 16px; }
.hp-hbox-h { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fafcfb; border-bottom: 1px solid var(--hp-line-2); }
.hp-hbox-h h3 { font-size: 16px; font-weight: 850; }
.hp-hbox-h small { display: block; color: var(--hp-muted); font-size: 12.5px; }
.hp-hbox-h .hp-pill { margin-left: auto; flex: 0 0 auto; }
.hp-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--hp-pale); color: var(--hp-green-d); font-size: 12px; font-weight: 800; white-space: nowrap; }
.hp-hbox-b { padding: 16px; }
.hp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; margin-bottom: 16px; }
.hp-shot { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--hp-line); background: #eff4f1; cursor: zoom-in; }
.hp-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.hp-shot:hover img { transform: scale(1.06); }
.hp-noimg { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 16px; border: 1px dashed var(--hp-line-d); border-radius: 14px; background: #fafcfb; color: var(--hp-muted); font-size: 13.5px; }
.hp-noimg i { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: #fff; border: 1px solid var(--hp-line); color: #94a3b8; display: grid; place-items: center; }

.hp-drop { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px; border: 1.5px dashed #a9cbbc; border-radius: 14px; background: #f4faf7; cursor: pointer; transition: border-color .15s, background-color .15s; }
.hp-drop:hover, .hp-drop.is-over { border-color: var(--hp-green); background: #ecf8f2; }
.hp-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.hp-drop-ic { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; background: #fff; color: var(--hp-green); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(16, 47, 37, .07); }
.hp-drop-tx b { display: block; font-size: 14px; font-weight: 800; color: #17243a; }
.hp-drop-tx small { display: block; margin-top: 2px; color: var(--hp-muted); font-size: 12.5px; }
.hp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 12px; }
.hp-thumbs:empty { display: none; }
.hp-thumb-sel { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--hp-line); }
.hp-thumb-sel img { width: 100%; height: 100%; object-fit: cover; }
.hp-thumb-sel span { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px; background: rgba(16, 47, 37, .78); color: #fff; font-size: 10.5px; font-weight: 700; }
.hp-upload-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.hp-del { display: flex; justify-content: flex-end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hp-line-2); }

/* ---------- login ---------- */

.hpl { min-height: calc(100vh - 80px); padding: 60px 20px 80px; background: radial-gradient(900px 420px at 12% 0%, rgba(34, 130, 88, .10), transparent 60%), linear-gradient(180deg, #f6faf8 0%, #edf7f2 100%); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #102033; -webkit-font-smoothing: antialiased; display: grid; align-items: center; }
.hpl, .hpl *, .hpl *::before, .hpl *::after { box-sizing: border-box; }
.hpl h1, .hpl h2, .hpl h3, .hpl p, .hpl ul { margin: 0; padding: 0; font-family: inherit; color: inherit; letter-spacing: normal; }
.hpl ul { list-style: none; }
.hpl a { text-decoration: none; }
.hpl [hidden] { display: none !important; }
.hpl-wrap { width: min(1020px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border: 1px solid #dfeae4; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgba(16, 47, 37, .14); }
.hpl-aside { position: relative; padding: 46px 42px; background: radial-gradient(420px 300px at 90% 0%, rgba(142, 211, 174, .22), transparent 65%), linear-gradient(160deg, #123a2d 0%, #0d251c 100%); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.hpl-pill { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #d6efe1; font-size: 13px; font-weight: 800; }
.hpl-pill i { width: 9px; height: 9px; border-radius: 50%; background: #8ed3ae; }
.hpl-aside h2 { margin-top: 20px; font-size: 34px; line-height: 1.12; font-weight: 850; letter-spacing: -.03em; color: #fff; }
.hpl-aside p { margin-top: 12px; max-width: 380px; color: rgba(255, 255, 255, .74); font-size: 15.5px; line-height: 1.6; }
.hpl-list { display: grid; gap: 14px; }
.hpl-list li { display: flex; gap: 13px; align-items: flex-start; }
.hpl-list i { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; background: rgba(142, 211, 174, .16); color: #8ed3ae; display: grid; place-items: center; }
.hpl-list b { display: block; font-size: 14.5px; font-weight: 800; color: #fff; }
.hpl-list span { display: block; margin-top: 1px; color: rgba(255, 255, 255, .68); font-size: 13.5px; line-height: 1.45; }
.hpl-card { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.hpl-card h1 { font-size: 28px; line-height: 1.2; font-weight: 850; letter-spacing: -.025em; }
.hpl .hpl-sub { margin-top: 6px; color: #64748b; font-size: 15px; line-height: 1.55; }
.hpl-error { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: #fff4f4; border: 1px solid #efc5c5; color: #a52b2b; font-size: 14px; font-weight: 700; }
.hpl-form { margin-top: 24px; }
.hpl-f { margin-bottom: 18px; }
.hpl-f-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.hpl-f label { display: block; margin: 0; font-size: 13.5px; font-weight: 800; color: #17243a; }
.hpl-f-top a { font-size: 13px; font-weight: 800; color: #16875b; }
.hpl-f-top a:hover { text-decoration: underline; }
.hpl-in { position: relative; }
.hpl-in > svg { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: #7c8c84; pointer-events: none; }
.hpl .hpl-in input { display: block; width: 100%; height: 54px; padding: 0 16px 0 46px; border: 1px solid #d7e3dd; border-radius: 12px; background: #fafcfb; color: #102033; font-size: 16px; box-shadow: none; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.hpl .hpl-in input.has-btn { padding-right: 52px; }
.hpl .hpl-in input:focus { border-color: #16875b; outline: 0; background: #fff; box-shadow: 0 0 0 4px rgba(22, 135, 91, .12); }
.hpl-eye { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: #7c8c84; display: grid; place-items: center; cursor: pointer; }
.hpl-eye:hover, .hpl-eye.on { background: #eaf6ef; color: #16875b; }
.hpl-err { display: block; margin-top: 6px; color: #b42318; font-size: 12.5px; font-weight: 700; }
.hpl-err:empty { display: none; }
.hpl-go { width: 100%; height: 56px; margin-top: 6px; border: 0; border-radius: 12px; background: #16875b; color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px rgba(22, 135, 91, .24); transition: background-color .15s, transform .15s; }
.hpl-go:hover { background: #12704b; transform: translateY(-1px); }
.hpl-foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid #e5ebe8; display: grid; gap: 12px; color: #64748b; font-size: 14px; line-height: 1.55; }
.hpl-foot a { color: #16875b; font-weight: 800; }
.hpl-foot a:hover { text-decoration: underline; }
.hpl-new { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: #f1f8f4; border: 1px solid #d3ebde; color: #334155; }
.hpl-new b { color: #102033; }

/* ---------- tilføj sommerhus ---------- */

.hp-add { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.hp-add-main { min-width: 0; }
.hp-add-side { position: sticky; top: 118px; display: grid; gap: 14px; }

/* fremgangslinje – tændes af portal-nyt.js ud fra, hvilket trin formularen viser */
.hp-prog-w { margin-bottom: 14px; padding: 16px 18px 14px; background: #fff; border: 1px solid var(--hp-line); border-radius: 18px; }
.hp-prog { display: flex; margin: 0; padding: 0; list-style: none; counter-reset: hpp; }
.hp-prog li { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 0 2px; text-align: center; color: #94a3b8; font-size: 12.5px; font-weight: 750; line-height: 1.25; counter-increment: hpp; }
.hp-prog li::before { content: counter(hpp); position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--hp-line-d); background: #fff; color: #94a3b8; font-size: 12.5px; font-weight: 800; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.hp-prog li:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; border-radius: 2px; background: var(--hp-line-d); transition: background-color .2s; }
.hp-prog li.is-done { color: #334155; }
.hp-prog li.is-done::before { content: ""; border-color: var(--hp-green); background: var(--hp-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.hp-prog li.is-done:not(:last-child)::after { background: var(--hp-green); }
.hp-prog li.is-now { color: var(--hp-ink); font-weight: 850; }
.hp-prog li.is-now::before { border-color: var(--hp-green); color: var(--hp-green); box-shadow: 0 0 0 5px rgba(22, 135, 91, .13); }
.hp-prog-now { display: none; margin: 12px 0 0; text-align: center; color: var(--hp-ink); font-size: 14px; font-weight: 800; }
.hp-prog-now small { color: var(--hp-muted); font-size: 13px; font-weight: 650; }

/* sådan går det videre */
.hp-howv { padding: 20px; background: #fff; border: 1px solid var(--hp-line); border-radius: 18px; }
.hp-howv h2 { margin-bottom: 16px; font-size: 16px; font-weight: 850; letter-spacing: -.01em; }
.hp-howv ol { display: grid; margin: 0; padding: 0; list-style: none; }
.hp-howv li { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-bottom: 18px; }
.hp-howv li:last-child { padding-bottom: 0; }
.hp-howv li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--hp-line-d); }
.hp-howv i { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--hp-green); color: #fff; font-size: 13px; font-weight: 800; font-style: normal; }
.hp-howv span { min-width: 0; color: var(--hp-muted); font-size: 13.5px; line-height: 1.45; }
.hp-howv b { display: block; margin-bottom: 1px; color: var(--hp-ink); font-size: 14.5px; font-weight: 800; }
.hp-safe { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--hp-pale); border: 1px solid #cfe7da; border-radius: 16px; }
.hp-safe > i { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; background: #fff; color: var(--hp-green); }
.hp-safe b { display: block; color: var(--hp-green-d); font-size: 14.5px; font-weight: 800; }
.hp-safe span { display: block; margin-top: 2px; color: #3d6a55; font-size: 13px; line-height: 1.45; }

/* ======================================================================
   Den eksisterende formular (React, singup-bundle.js) i det nye design.
   Kun udseende – formularens indhold og opførsel er uændret.
   ====================================================================== */

signupform.hp-form { display: block; width: 100%; overflow: hidden; background: #fff; border: 1px solid var(--hp-line); border-radius: 20px !important; box-shadow: 0 1px 2px rgba(16, 47, 37, .04), 0 14px 34px rgba(16, 47, 37, .07); color: var(--hp-ink); }
.hp-form form { min-height: 0 !important; align-items: stretch !important; justify-content: flex-start !important; padding: 28px 30px 26px !important; }
.hp-form .p-md-3 { padding: 0 !important; }
/* rækker med negative marginer (antal-vælgere, miniaturer) skal have samme bredde som resten */
.hp-form .row.w-100 { width: calc(100% + var(--bs-gutter-x)) !important; }
@media (min-width: 360px) and (max-width: 575px) { .hp-form .row.g-2 > .col-6.col-sm-4 { width: 33.33333333% !important; } }

/* overskrifter og forklaring */
.hp-form h3.text-header { align-self: stretch !important; width: 100%; margin: 0 0 6px !important; text-align: left !important; font-size: 22px; font-weight: 850; line-height: 1.25; letter-spacing: -.015em; color: var(--hp-ink); }
.hp-form span.text-header, .hp-form span.d-block.text-center { align-self: stretch !important; display: block; width: 100%; margin-bottom: 14px !important; text-align: left !important; color: var(--hp-muted); font-size: 14.5px; font-weight: 500; line-height: 1.5; }
.hp-form label.text-header { color: var(--hp-ink); font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.hp-form label.fw-bold:not(.text-header) { display: block; margin-bottom: 6px !important; color: #17243a; font-size: 13.5px; font-weight: 800 !important; }
.hp-form label.text-header.fw-bold { font-weight: 800 !important; }

/* hvad beskriver dig bedst */
.hp-form .owner-type-selector { margin-bottom: 22px !important; padding-bottom: 20px; border-bottom: 1px solid var(--hp-line-2); }
.hp-form .owner-type-label { color: #17243a; font-size: 13.5px; font-weight: 800; }
.hp-form .owner-type-required { color: var(--hp-muted); font-size: 12px; font-weight: 650; }
.hp-form .owner-type-option { min-height: 68px; border: 1px solid var(--hp-line-d); border-radius: 12px; background: #fff; color: var(--hp-ink); box-shadow: none; transition: border-color .15s, background-color .15s, box-shadow .15s; cursor: pointer; }
.hp-form .owner-type-option:hover { border-color: var(--hp-green); }
.hp-form .owner-type-option.active { border-color: var(--hp-green); background: #f3faf6; box-shadow: 0 0 0 1px var(--hp-green); }
.hp-form .owner-type-option-title { color: var(--hp-ink); font-size: 15px; font-weight: 850; }
.hp-form .owner-type-option-description { color: var(--hp-muted); font-size: 12.5px; font-weight: 500; }
.hp-form .owner-type-option:focus-visible { outline: 3px solid rgba(22, 135, 91, .38); outline-offset: 2px; }
/* den gamle sides understregning og lodrette streger mellem valgene */
.hp-form .owner-type-option.active { text-decoration: none; }
.hp-form .owner-type-option:not(:last-child)::after { content: none; display: none; }

/* felter */
.hp-form .fieldBorder { min-height: 48px; border: 1px solid var(--hp-line-d); border-radius: 12px !important; background-color: #fafcfb; color: var(--hp-ink); font-size: 16px; box-shadow: none; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.hp-form .fieldBorder::placeholder { color: #94a3b8; opacity: 1; }
.hp-form .fieldBorder:hover { border-color: #b9d3c6; }
.hp-form .fieldBorder.succesBorder { border-color: #8cc9aa; }
.hp-form .fieldBorder.errorBorder { border-color: #e0a09a; background-color: #fff9f8; }
.hp-form .fieldBorder:focus { border-color: var(--hp-green); background-color: #fff; outline: 0; box-shadow: 0 0 0 4px rgba(22, 135, 91, .12); }
.hp-form .errorText { display: block; margin-top: 6px; color: var(--hp-red); font-size: 12.5px; font-weight: 700; }
.hp-form textarea.fieldBorder { min-height: 150px; padding: 12px 14px !important; line-height: 1.55; resize: vertical !important; }
.hp-form select.fieldBorder { -webkit-appearance: none; appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 16px 16px; cursor: pointer; }
.hp-form select#facilities, .hp-form select#facts { flex: 1 1 auto; min-width: 0; width: auto; }
.hp-form .position-relative > span.position-absolute svg { fill: #7c8c84; }

/* adresseforslag */
.hp-form .address-suggestions { margin-top: 6px; border: 1px solid var(--hp-line-d); border-radius: 12px; box-shadow: 0 18px 40px rgba(16, 47, 37, .16); max-height: 260px; }
.hp-form .address-suggestion { display: block; padding: 11px 16px; color: var(--hp-ink); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.hp-form .address-suggestion + .address-suggestion { border-top: 1px solid var(--hp-line-2); }
.hp-form .address-suggestion:hover, .hp-form .address-suggestion:focus-visible { background: #f3faf6; color: var(--hp-green-d); }

/* ja/nej-kontakt */
.hp-form .toggle-pill-slider { background: #cfdbd5; transition: background-color .2s; }
.hp-form .toggle-pill-input:checked + .toggle-pill-slider { background: var(--hp-green); }
.hp-form .toggle-pill-input:focus-visible + .toggle-pill-slider { outline: 3px solid rgba(22, 135, 91, .38); outline-offset: 2px; }
.hp-form div:has(> label.toggle-pill) { margin-top: 6px; padding: 14px 16px !important; border: 1px solid var(--hp-line); border-radius: 14px; background: #fafcfb; }

/* antal sovepladser, baderum ... */
.hp-form .customSelector-text { align-self: flex-start !important; margin-bottom: 6px; color: #17243a; font-size: 13px; font-weight: 800; }
.hp-form .customSelector { height: 50px; padding: 0 10px !important; border: 1px solid var(--hp-line); border-radius: 14px; background: #f4f8f6; }
.hp-form .customSelector-middle { color: var(--hp-ink); font-size: 18px; font-weight: 850; }
.hp-form .customSelector svg { width: 30px; height: 30px; cursor: pointer; transition: transform .12s; }
.hp-form .customSelector svg circle { fill: #fff; stroke: #b9d3c6; transition: stroke .15s, fill .15s; }
.hp-form .customSelector svg:hover circle { stroke: var(--hp-green); fill: #f3faf6; }
.hp-form .customSelector svg:active { transform: scale(.92); }

/* faciliteter og fakta: valgte punkter */
.hp-form .clear-all-btn { flex: 0 0 auto; height: 40px; margin-left: 10px; padding: 0 16px; border: 1px solid var(--hp-line-d); border-radius: 999px; background: #fff; color: var(--hp-muted); font-size: 13px; font-weight: 750; cursor: pointer; transition: border-color .15s, color .15s; }
.hp-form .clear-all-btn:hover { border-color: var(--hp-red); color: var(--hp-red); }
.hp-form [aria-live="polite"].border { min-height: 50px; padding: 8px 10px !important; border-color: var(--hp-line-d) !important; border-radius: 12px !important; background: #fafcfb; }
.hp-form span.bg-primary.rounded-pill { padding-left: 12px !important; border-color: transparent !important; background-color: var(--hp-green) !important; }
.hp-form span.bg-primary.rounded-pill .text-white { font-size: 13px; font-weight: 750 !important; }
.hp-form span.bg-primary.rounded-pill svg { cursor: pointer; opacity: .8; }
.hp-form span.bg-primary.rounded-pill:hover svg { opacity: 1; }
.hp-form [aria-live="polite"] > .text-muted { font-size: 0 !important; }
.hp-form [aria-live="polite"] > .text-muted::before { content: "Ingen valgt endnu – vælg i listen ovenfor"; color: #94a3b8; font-size: 14px; font-weight: 500; }
.hp-form [aria-label="Faciliteter selected"] > .text-muted::before { content: "Ingen faciliteter valgt endnu – vælg i listen ovenfor"; }
.hp-form [aria-label="Fakta selected"] > .text-muted::before { content: "Ingen fakta valgt endnu – vælg i listen ovenfor"; }

/* billeder og aftale: upload-felt */
.hp-form .form-group:has(input[type="file"]) { align-items: stretch !important; gap: 10px; margin-top: 4px !important; padding: 20px 18px; border: 1.5px dashed #a9cbbc; border-radius: 14px; background: #f4faf7; text-align: center; }
.hp-form .form-group:has(input[type="file"]) label.text-header { align-self: stretch !important; text-align: left; font-size: 15px; font-weight: 800; }
.hp-form .form-group:has(input[type="file"]) > span.d-block { color: var(--hp-muted); font-size: 13.5px; text-align: left !important; }
.hp-form .form-group:has(input[type="file"]) > button.bg-primary { align-self: center; background-color: #fff !important; color: var(--hp-green) !important; border: 1px solid var(--hp-green) !important; box-shadow: none; }
.hp-form .form-group:has(input[type="file"]) > button.bg-primary:hover { background-color: var(--hp-green) !important; color: #fff !important; }
.hp-form .form-group .small { margin-top: 0 !important; color: var(--hp-muted); font-size: 13px; overflow-wrap: anywhere; }

/* knapper */
.hp-form button.bg-primary { min-height: 46px; padding: 0 22px !important; border-radius: 11px !important; background-color: var(--hp-green) !important; color: #fff !important; font-size: 14.5px; font-weight: 800 !important; line-height: 1.2; box-shadow: 0 6px 16px rgba(22, 135, 91, .24); cursor: pointer; transition: background-color .15s, box-shadow .15s, transform .15s; }
.hp-form button.bg-primary:hover { background-color: var(--hp-green-d) !important; transform: translateY(-1px); }
.hp-form button.text-primary { min-height: 46px; padding: 0 20px !important; border: 1px solid var(--hp-line-d) !important; border-radius: 11px !important; background-color: #fff !important; color: var(--hp-ink) !important; font-size: 14.5px; font-weight: 750 !important; line-height: 1.2; cursor: pointer; transition: border-color .15s, color .15s; }
.hp-form button.text-primary:hover { border-color: var(--hp-green) !important; color: var(--hp-green) !important; }
.hp-form button.col-5, .hp-form button.w-100 { flex: 0 0 auto; width: auto !important; }
.hp-form button:focus-visible, .hp-form .clear-all-btn:focus-visible { outline: 3px solid rgba(22, 135, 91, .38); outline-offset: 2px; }
.hp-form form > button[type="submit"] { align-self: flex-end !important; margin-top: 22px; }
.hp-form form > div:has(+ button[type="submit"]) { padding-bottom: 22px; border-bottom: 1px solid var(--hp-line-2); }
.hp-form form > div[class*="justify-content-between"] { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hp-line-2); }

/* sidste trin har kun knapper – giv det en overskrift og en forklaring */
.hp-form form:not(:has(h3, label, input, select, textarea, .owner-type-selector))::before { content: "Så er alt udfyldt"; display: block; width: 100%; margin: 0 0 6px; color: var(--hp-ink); font-size: 22px; font-weight: 850; line-height: 1.25; letter-spacing: -.015em; }
.hp-form form:not(:has(h3, label, input, select, textarea, .owner-type-selector))::after { content: "Tryk på “Tilføj hus” for at oprette dit sommerhus – så kan bureauerne give dig et tilbud."; order: 1; display: block; width: 100%; color: var(--hp-muted); font-size: 14.5px; line-height: 1.55; }
.hp-form form:not(:has(h3, label, input, select, textarea, .owner-type-selector)) > div { order: 2; }

/* ---------- dialog: bred udgave ("Læs hele tilbuddet") ---------- */

.hp-modal-box.is-wide { display: flex; flex-direction: column; width: min(900px, 100%); max-height: calc(100vh - 32px); }
.hp-modal-box.is-wide .hp-modal-ic { flex: none; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 14px; }
.hp-modal-box.is-wide h3, .hp-modal-box.is-wide .hp-modal-err, .hp-modal-box.is-wide .hp-modal-ac { flex: none; }
.hp-modal-box.is-wide .hp-modal-tx { flex: 1 1 auto; min-height: 0; margin: 14px -10px 0 0; padding-right: 10px; overflow-y: auto; overscroll-behavior: contain; }
.hp-modal-box.is-wide .hp-panel { padding: 0; border-top: 0; background: none; }
.hp-modal-box.is-wide .hp-files-g { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---------- små tilføjelser ---------- */

.hp { --hp-stick: 118px; }
.hp-cell-t { overflow-wrap: anywhere; }

/* ---------- tilpasning til mindre skærme ---------- */

@media (max-width: 1319px) {
  .hp-pri-g { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .hp-pri-g[data-n="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hp-pri-g[data-n="5"] .hp-pt { grid-column: span 2; }
  .hp-pri-g[data-n="5"] .hp-pt:nth-child(n+4) { grid-column: span 3; }
}

@media (max-width: 991px) {
  .hp { padding: 44px 0 64px; }
  .hp-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 16px; }
  .hp-side { position: static; max-height: none; display: block; padding: 8px; border-radius: 16px; overflow: visible; }
  .hp-brand, .hp-nav-h, .hp-side hr { display: none; }
  .hp-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .hp-link { flex: 0 0 auto; gap: 10px; margin: 0; padding: 7px 12px; white-space: nowrap; }
  .hp-link:hover { transform: none; }
  .hp-link.on::before { display: none; }
  .hp-grid2 { grid-template-columns: minmax(0, 1fr); }
  .hp-panel-grid { grid-template-columns: minmax(0, 1fr); }
  .hp-toast { top: 126px; }
  .hp-bt { --hp-lab: 176px; --hp-col: 164px; }
  .hp-add { grid-template-columns: minmax(0, 1fr); }
  .hp-add-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .hpl-wrap { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .hpl-aside { padding: 32px 30px; gap: 22px; }
  .hpl-aside h2 { font-size: 28px; margin-top: 16px; }
  .hpl-list { display: none; }
  .hpl-card { padding: 34px 30px 36px; }
  .hp-ft-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-fld-q { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  /* fremgangsstrimlen bliver til én linje med en bjælke */
  .hp .hp-steps { display: block; padding: 14px 16px; margin-bottom: 16px; }
  .hp .hp-step { display: none; }
  .hp-steps-now { display: block; margin: 0; font-size: 14px; color: #475569; }
  .hp-steps-now b { color: var(--hp-ink); }
  .hp-steps-now::after { content: ""; display: block; height: 6px; margin-top: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--hp-green) var(--p, 25%), #e3ece7 var(--p, 25%)); }
  .hp-add-side { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 719px) {
  .hp-pri-g { display: flex; gap: 10px; margin: 0 -14px; padding: 2px 14px 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .hp-pt { flex: 0 0 min(250px, 78%); scroll-snap-align: start; }
}

@media (max-width: 639px) {
  .hp-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hp-nav::-webkit-scrollbar { display: none; }
  .hp-top h1 { font-size: 26px; }
  .hp-sec-h h2 { font-size: 20px; }
  .hp-sec-h .hp-seg { width: 100%; }
  .hp-seg button { flex: 1; padding: 10px 8px; }
  .hp-pri { padding: 14px 14px 12px; }
  .hp-ft-r { width: 100%; margin-left: 0; }
  .hp-ft-r .hp-chip { height: 44px; }
  .hp-btn.hp-ovb { flex: 1 1 100%; min-height: 46px; justify-content: center; }
  .hp-ft-panel { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .hp-board-top { gap: 6px 14px; padding: 10px 12px; }
  .hp-hint { flex-basis: 100%; }
  .hp-bt-tools { margin-left: 0; }
  .hp-bt { --hp-lab: 148px; --hp-col: 140px; }
  .hp-bt th, .hp-bt td { padding: 9px 10px; font-size: 13px; }
  .hp-bt thead th { padding: 10px; }
  .hp-bt th[scope="row"] { padding-left: 8px; padding-right: 8px; font-size: 11.5px; line-height: 1.35; }
  .hp-bt th[scope="row"] small { font-size: 11.5px; }
  .hp-bt-agi { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hp-bt-agn { font-size: 13px; }
  .hp-bt-ag .hp-flag { margin-top: 6px; }
  .hp-rt { gap: 2px; }
  .hp-star { width: 28px; height: 28px; margin: -5px -7px -5px 0; }
  .hp-inc { flex-wrap: nowrap; gap: 6px; margin: 0 -16px 14px; padding: 2px 16px 8px; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .hp-inc-l { flex: none; }
  .hp-ic { flex: none; }
  .hp-bt-hero td strong { font-size: 18px; }
  .hp-bt-hero.is-service td strong { font-size: 17px; }
  .hp-bt-sec button { padding: 10px; font-size: 11px; }
  .hp-bt-act td .hp-btn { padding: 0 8px; font-size: 12.5px; }
  .hp-ch h3 { font-size: 17px; }
  .hp-panel { padding: 16px; }
  .hp-msg { flex-direction: column; gap: 10px; }
  .hp-note { padding: 14px 16px; }
  .hp-note .hp-btn { width: 100%; }
  .hp-card-h, .hp-card-b { padding-left: 16px; padding-right: 16px; }
  .hp-house { min-width: 220px; }
  .hpl { padding: 24px 12px 56px; }
  .hpl-card { padding: 28px 22px 30px; }
  .hpl-aside { padding: 26px 22px; }
  .hpl-wrap { border-radius: 22px; }
  .hp-modal-box { padding: 22px 20px 18px; }
  .hp-modal-box.is-wide { padding: 20px 16px 16px; }
  .hp-modal-box.is-wide .hp-modal-tx { margin-right: -6px; padding-right: 6px; }
  .hp-modal-ac { flex-direction: column-reverse; }
  .hp-modal-ac .hp-btn { flex: none; width: 100%; }
  .hp-prog-w { padding: 14px 14px 12px; }
  .hp-prog li { font-size: 0; gap: 0; }
  .hp-prog-now { display: block; }
  .hp-form form { padding: 20px 16px 18px !important; }
  .hp-form h3.text-header { font-size: 20px; }
  .hp-form form > div[class*="justify-content-between"] { gap: 10px !important; }
  .hp-form button.col-5 { flex: 1 1 auto; min-width: 0; padding-left: 14px !important; padding-right: 14px !important; }
  .hp-form button.col-5.text-primary { flex: 0 0 auto; }

  /* AI-assistenten: rund knap og et ark nederst på skærmen */
  .hp-ai.is-open::before { content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1099; background: rgba(16, 32, 51, .45); }
  .hp-ai-fab { right: 14px; bottom: 14px; width: 56px; height: 56px; padding: 0; justify-content: center; }
  .hp-ai-fab span { display: none; }
  .hp-ai-panel { left: 0; right: 0; bottom: 0; width: auto; max-width: none; height: 86vh; height: min(86dvh, 700px); max-height: none; border-radius: 22px 22px 0 0; border-bottom: 0; }
  html.hp-ai-open { overflow: hidden; }
  .hp-ai-f textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hp *, .hp-modal *, .hp-lb, .hp-toast, .hpl *, .hp-ai, .hp-ai * { animation: none !important; transition: none !important; }
}

