/* Rolig forside: "Hvad har du brug for lige nu?" – fælles for anonkonform og AnonComfort */
.need { max-width: none; margin: 0; padding: 1.6rem var(--gut, 1.25rem) .4rem; display: grid; gap: 1.1rem; }
.need[hidden] { display: none; }
.need-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; }
.need h2 { margin: 0; font: 700 clamp(1.6rem, 3.6vw, 2.3rem)/1.2 var(--sans); letter-spacing: -.01em; }
.need-sub { margin: .2rem 0 0; color: var(--muted); font-size: 1.12rem; max-width: 40rem; }
.need-skip { font: inherit; font-size: .98rem; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: .6rem .2rem; min-height: 44px; }
.need-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.need-btn { display: flex; gap: 1rem; align-items: center; padding: 1.05rem 1.15rem; min-height: 5.2rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s; }
.need-btn:hover { border-color: var(--accent, #6a4aa6); transform: translateY(-1px); }
.need-btn:focus-visible { outline: 3px solid var(--accent, #6a4aa6); outline-offset: 2px; }
.need-ico { flex: none; width: 3rem; height: 3rem; border-radius: 13px; display: grid; place-items: center; font-size: 1.45rem;
  background: color-mix(in srgb, var(--tone, #6a4aa6) 14%, transparent); color: var(--tone, #6a4aa6); }
.need-txt { display: grid; gap: .1rem; }
.need-txt b { font-size: 1.18rem; line-height: 1.3; }
.need-txt span { color: var(--muted); font-size: .98rem; line-height: 1.4; }
.tone-a { --tone: #6a4aa6; } .tone-b { --tone: #b4600f; } .tone-c { --tone: #0b7a70; }
@media (prefers-color-scheme: dark) { .tone-a { --tone: #b9a3ef; } .tone-b { --tone: #f2b06b; } .tone-c { --tone: #6fd3c8; } }
.need-sos { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.4rem; padding: .9rem 1.15rem; border-radius: 14px;
  background: color-mix(in srgb, #d6452f 9%, var(--surface)); border: 1px solid color-mix(in srgb, #d6452f 35%, var(--line)); font-size: 1.05rem; }
.need-sos b { font-size: 1.12rem; }
.need-sos a { font-weight: 700; }
.need-sos .more { margin-left: auto; font-weight: 400; }
.need-map { margin: .2rem 0 0; font-size: 1.12rem; font-weight: 700; }
.need-show { margin: .8rem 0 0; padding: 0 var(--gut, 1.25rem); }
.need-show button { font: inherit; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; min-height: 44px; }
.need-on { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; padding: .65rem .85rem; border-radius: 12px;
  background: color-mix(in srgb, var(--accent, #6a4aa6) 10%, var(--surface)); border: 1px solid var(--line); margin: 0 0 .6rem; }
.need-on button { font: inherit; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .8rem; min-height: 40px; cursor: pointer; color: var(--ink); }
/* Kortet kommer nu efter valgene, så det skal ikke fylde hele skærmen fra start */
.need ~ .layout, .need-show ~ .layout { scroll-margin-top: .5rem; }
/* Ikoner, der ellers kun findes på AnonComfort */
.ic-n-talk { --ic: url(/anoncomfort/vendor/icons/message-circle.svg); }
.ic-n-bed { --ic: url(/anoncomfort/vendor/icons/bed.svg); }
.ic-n-food { --ic: url(/anoncomfort/vendor/icons/gift.svg); }
@media (max-width: 40rem) {
  .need { padding-top: 1.1rem; }
  .need-btn { min-height: 4.4rem; padding: .85rem 1rem; }
  .need-ico { width: 2.6rem; height: 2.6rem; font-size: 1.25rem; }
  .need-sos .more { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .need-btn { transition: none; } .need-btn:hover { transform: none; } }

/* v67: kortet bliver større, når man bruger det */
body.kort-aktiv .layout, body.kort-aktiv.kortui .layout { height: calc(100vh - 1rem); height: calc(100dvh - 1rem); min-height: 30rem; transition: height .25s ease; }
@media (max-width: 52rem) {
  body.kort-aktiv .layout, body.kort-aktiv.kortui .layout { height: auto; min-height: 0; }
  body.kort-aktiv .map { height: 80vh; height: 80svh; }
}
body.kort-fuld { overflow: hidden; }
body.kort-fuld .layout, body.kort-fuld.kortui .layout { position: fixed; inset: 0; z-index: 1500; height: auto; min-height: 0; margin: 0; padding: .5rem; background: var(--paper); }
body.kort-fuld .map { height: 100% !important; }
body.kort-fuld .exit { z-index: 1600; }
@media (max-width: 52rem) {
  body.kort-fuld .layout, body.kort-fuld.kortui .layout { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  body.kort-fuld .panel { display: none; }
}
.kctl button.kfuld svg { width: 1.05em; height: 1.05em; flex: none; }
@media (prefers-reduced-motion: reduce) { body.kort-aktiv .layout { transition: none; } }

/* v73: på brede skærme: tre knapper pr. række, så rækkerne altid går op */
@media (min-width: 64rem) { .need-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40.01rem) and (max-width: 63.99rem) { .need-grid { grid-template-columns: repeat(2, 1fr); } }
/* v79 telefon: én finger flytter kortet; kortet er lidt over halv skærm, så siden kan rulles på kanterne */
@media (max-width: 52rem) {
  .kortui .map, .map { height: 58vh; height: 58svh; }
  .kctl button { min-height: 2.75rem; min-width: 2.75rem; }
  .leaflet-touch .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
}
/* "Liste" i stort kort */
.kliste { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1600;
  font: inherit; font-weight: 700; padding: .75rem 1.6rem; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper);
  box-shadow: 0 6px 20px rgba(0,0,0,.3); min-height: 3rem; }
.kliste[hidden] { display: none; }
@media (min-width: 52.01rem) { .kliste { display: none; } }
@media (max-width: 52rem) {
  body.kort-fuld.kort-liste .panel { display: block !important; position: fixed; left: 0; right: 0; bottom: 0; height: 62vh; height: 62svh; overflow-y: auto;
    z-index: 1550; background: var(--surface); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.3); padding: 1rem .9rem 5rem; }
}
