/* skjul. design system — fra docs/design/rent-a-hide-konsept.dc.html */

:root {
  --ink: #142219;          /* mørk skoggrønn */
  --ink-soft: #1E3227;
  --text: #1E2721;
  --text-soft: #3A4A3E;
  --muted: #8A9384;
  --muted-2: #5A6656;
  --faint: #C9CDC2;
  --cream: #F4F1E8;        /* sideflate */
  --cream-2: #ECE8DA;      /* innslag */
  --card: #FCFBF6;         /* kort */
  --paper: #EDE8D8;        /* lys tekst på mørk */
  --green: #3D5A43;
  --green-soft: rgba(61, 90, 67, .12);
  --sage: #A8B5A3;
  --sage-2: #8FA894;
  --ember: #C4703A;        /* aksent */
  --ember-dark: #8A4B22;
  --ember-soft: rgba(196, 112, 58, .14);
  --line: rgba(30, 50, 39, .12);
  --line-strong: rgba(30, 50, 39, .22);
  --shadow: 0 12px 32px rgba(20, 34, 25, .14);
  --radius: 12px;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ember); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.02em; margin: 0; }
h1 { font-size: 38px; font-weight: 750; line-height: 1.05; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 650; }
p { margin: 0; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .container { padding: 0 18px; } }

/* ---- Toppmeny ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px; border-bottom: 1px solid var(--line); gap: 16px;
}
.topbar--host { background: var(--card); padding: 16px 40px; }
@media (max-width: 720px) { .topbar { padding: 12px 18px; flex-wrap: wrap; } }
.logo { font-family: var(--font-display); font-size: 24px; font-weight: 750; letter-spacing: -.02em; color: var(--ink); }
.logo b { color: var(--ember); font-weight: 750; }
.logo-tag { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .12em; font-family: var(--font-body); }
.topbar-context { font-size: 13px; color: var(--text-soft); border-left: 1px solid rgba(30,50,39,.15); padding-left: 14px; }
.topbar-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; color: var(--text-soft); flex-wrap: wrap; }
.topbar-nav a.active { color: var(--ink); font-weight: 600; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}

/* ---- Knapper ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: var(--font-body);
  font-size: 13.5px; font-weight: 600; border-radius: 99px; padding: 10px 20px;
  background: var(--ink); color: var(--cream); text-align: center;
}
.btn:hover { color: var(--cream); opacity: .92; }
.btn--ember { background: var(--ember); color: #fff; font-weight: 700; }
.btn--ember:hover { color: #fff; }
.btn--outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--text-soft); }
.btn--big { font-size: 15px; font-weight: 700; padding: 14px 24px; border-radius: 10px; }
.btn--small { font-size: 12px; padding: 6px 14px; }
.btn--block { display: flex; width: 100%; }

/* ---- Chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--ink); border: 1px solid rgba(30,50,39,.25); border-radius: 99px;
  padding: 8px 16px; background: var(--card); cursor: pointer;
}
.chip--on { color: var(--cream); border-color: var(--ink); background: var(--ink); }
.chip--tag { font-size: 10.5px; color: var(--green); background: var(--green-soft); border: none; padding: 4px 10px; cursor: default; }
.chip--ember { font-size: 10.5px; color: var(--ember-dark); background: var(--ember-soft); border: none; padding: 4px 10px; cursor: default; }
.chip--count { font-size: 12px; color: var(--ember-dark); background: var(--ember-soft); border: none; padding: 5px 12px; }

/* ---- Kort ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card--pad { padding: 16px 18px; }
.card--dark { background: var(--ink); border: none; color: var(--paper); }
.card--dark h2, .card--dark h3 { color: var(--paper); }
.card--cream { background: var(--cream-2); border: none; }
.card--alert { border-color: rgba(196,112,58,.5); }

.overline { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.overline--ember { color: var(--ember-dark); }
.stat { font-family: var(--font-display); font-size: 26px; font-weight: 750; color: var(--ink); }
.card--dark .stat, .card--dark .overline { color: var(--paper); }
.card--dark .overline { color: var(--sage); }
.help { font-size: 12.5px; color: var(--muted); }
.text-soft { color: var(--text-soft); }
.text-green { color: var(--green); font-weight: 600; }
.text-ember { color: var(--ember-dark); font-weight: 600; }

/* ---- Skjema ---- */
.field { border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 14px; background: var(--card); }
.field label, .field .field-label { display: block; font-size: 10px; letter-spacing: .12em; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 2px; }
.field input, .field select, .field textarea {
  width: 100%; border: none; outline: none; background: transparent; padding: 0;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 70px; font-weight: 400; }
.field:focus-within { border-color: var(--green); }
.form-error { color: var(--ember-dark); font-size: 12.5px; font-weight: 600; }
.form-ok { color: var(--green); font-size: 12.5px; font-weight: 600; }
.checkline { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); cursor: pointer; }
.checkline input { width: 18px; height: 18px; accent-color: var(--ink); }
.radioline { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--muted-2); cursor: pointer; }
.radioline input { accent-color: var(--ink); margin-top: 2px; }
.radioline--on { color: var(--ink); font-weight: 600; }

/* ---- Tabeller/lister ---- */
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack--tight { gap: 8px; }
.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

/* ---- Hero ---- */
.hero { position: relative; background: linear-gradient(160deg, var(--ink-soft) 0%, var(--ink) 70%); padding: 64px 40px 96px; overflow: hidden; color: var(--paper); }
.hero::before { content: ""; position: absolute; right: -60px; top: -40px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(196,112,58,.18), transparent 65%); }
.hero-kicker { font-size: 12px; letter-spacing: .18em; color: var(--ember); font-weight: 600; margin-bottom: 14px; position: relative; }
.hero h1 { font-size: 64px; color: var(--paper); position: relative; }
.hero-sub { font-size: 16px; color: var(--sage); margin-top: 16px; max-width: 520px; position: relative; }
@media (max-width: 720px) { .hero { padding: 40px 18px 72px; } .hero h1 { font-size: 40px; } }

/* ---- Søkeboks ---- */
.searchbox {
  margin: -40px 40px 0; position: relative; background: var(--card);
  border: 1px solid rgba(30,50,39,.14); border-radius: 14px; box-shadow: var(--shadow);
  display: flex; align-items: stretch;
}
.searchbox-cell { flex: 1; padding: 12px 22px; border-right: 1px solid var(--line); }
.searchbox-cell:last-of-type { border-right: none; }
.searchbox-cell .field-label { font-size: 10px; letter-spacing: .14em; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.searchbox-cell input, .searchbox-cell select { border: none; outline: none; background: transparent; width: 100%; font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 0; }
.searchbox-submit { display: flex; align-items: center; padding: 8px; }
.searchbox-submit .btn { border-radius: 10px; padding: 16px 30px; }
@media (max-width: 900px) { .searchbox { flex-direction: column; margin: -40px 18px 0; } .searchbox-cell { border-right: none; border-bottom: 1px solid var(--line); } }

/* ---- Resultatkort ---- */
.hide-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; color: inherit; }
.hide-card:hover { color: inherit; box-shadow: var(--shadow); }
.hide-card-img { position: relative; height: 190px; }
.hide-card-img .chip--type { position: absolute; top: 12px; left: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: #fff; border-radius: 99px; padding: 4px 10px; }
.fav-btn { position: absolute; top: 8px; right: 10px; background: none; border: none; color: rgba(255,255,255,.85); font-size: 17px; cursor: pointer; }
.fav-btn--on { color: #fff; }
.hide-card-body { padding: 16px 18px 18px; }
.hide-card-price { margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--ink); }
.hide-card-price small { font-size: 12px; font-weight: 400; color: var(--muted); }

/* ---- Kalender ---- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 11px; text-align: center; }
.cal-head { font-size: 10.5px; color: var(--muted); font-weight: 700; padding: 2px 0; text-transform: uppercase; }
.cal-day { padding: 5px 2px; border-radius: 6px; border: none; background: none; font-family: var(--font-body); cursor: pointer; }
.cal-day b { display: block; color: var(--ink); font-weight: 600; }
.cal-day small { display: block; font-size: 8.5px; color: var(--green); }
.cal-day--closed { cursor: default; }
.cal-day--closed b { color: var(--faint); }
.cal-day--full { cursor: default; }
.cal-day--full b { color: var(--ember); text-decoration: line-through; }
.cal-day--full small { color: var(--ember); }
.cal-day--sel { background: var(--ink); }
.cal-day--sel b { color: var(--cream); font-weight: 700; }
.cal-day--sel small { color: var(--sage); }
.cal-day--range { background: var(--ink); border-radius: 0; }

/* vertskalender */
.hostcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.hostcal-day { border-radius: 8px; padding: 8px 9px; min-height: 56px; background: var(--card); border: 1px solid var(--line); font-size: 11px; }
.hostcal-day b { font-weight: 600; color: var(--ink); display: block; }
.hostcal-day .cap { font-size: 10.5px; font-weight: 700; color: var(--green); margin-top: 6px; display: block; }
.hostcal-day--closed { background: var(--cream-2); border: none; }
.hostcal-day--closed b { color: var(--faint); }
.hostcal-day--closed .cap { color: var(--muted); font-weight: 400; }
.hostcal-day--full { background: var(--ink); border: none; }
.hostcal-day--full b { color: var(--cream); }
.hostcal-day--full .cap { color: var(--sage); }
.hostcal-day--loan { background: var(--ember-soft); border: 1px dashed var(--ember); }
.hostcal-day--loan b, .hostcal-day--loan .cap { color: var(--ember-dark); }
.hostcal-day--today { outline: 2px solid var(--ember); outline-offset: 1px; }

/* ---- Søylediagram (arter/treff, delscore) ---- */
.bar-row { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 12px; font-size: 13px; }
.bar-track { height: 8px; border-radius: 99px; background: rgba(30,50,39,.1); }
.bar-fill { height: 8px; border-radius: 99px; background: var(--green); }
.bar-fill--low { background: var(--sage-2); }

/* ---- Telefonramme (mobilvisninger vises som vanlige responsive sider) ---- */

/* ---- Diverse ---- */
.badge-ethics { display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: var(--green); font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 4px 12px; }
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 10px; }
.gallery > div { position: relative; }
.gallery > div:first-child { grid-row: span 2; border-radius: 12px 0 0 12px; }
.gallery > div:nth-child(3) { border-radius: 0 12px 0 0; }
.gallery > div:last-child { border-radius: 0 0 12px 0; }
.gallery .img-caption { position: absolute; bottom: 10px; left: 12px; font-size: 9px; letter-spacing: .1em; color: rgba(237,232,216,.6); text-transform: uppercase; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 140px 140px; } .gallery > div:first-child { grid-column: span 2; grid-row: span 1; border-radius: 12px 12px 0 0; } }

.msg-flash { background: var(--green-soft); color: var(--green); font-weight: 600; border-radius: 10px; padding: 12px 16px; font-size: 13px; }
.msg-flash--error { background: var(--ember-soft); color: var(--ember-dark); }

.footer { border-top: 1px solid var(--line); padding: 26px 40px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---- Print (Dagens ark) ---- */
@media print {
  .topbar, .footer, .no-print { display: none !important; }
  body { background: #fff; }
  .card { border-color: #999; break-inside: avoid; }
}

/* ---- Filter-dropdowns (details/summary, ingen JS) ---- */
.filter-dd { position: relative; }
.filter-dd summary { list-style: none; cursor: pointer; }
.filter-dd summary::-webkit-details-marker { display: none; }
.filter-panel {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0;
  background: var(--card); border: 1px solid rgba(30,50,39,.16); border-radius: 12px;
  box-shadow: 0 10px 24px rgba(20,34,25,.1); padding: 16px 20px;
  display: grid; gap: 10px; min-width: 220px;
}
.filter-panel--wide { grid-template-columns: 1fr 1fr; min-width: 380px; }
@media (max-width: 640px) { .filter-panel--wide { grid-template-columns: 1fr; min-width: 240px; } }
