/* ── Litteraturhuset – ekte design ───────────────────────────── */

@font-face {
  font-family: 'Louize';
  src: url('fonts/Louize.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Louize';
  src: url('fonts/Louize-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Louize';
  src: url('fonts/Louize-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'MatterSQ';
  src: url('fonts/MatterSQ-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'MatterSQ';
  src: url('fonts/MatterSQ-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'MatterSQ';
  src: url('fonts/MatterSQ-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'MatterSQ';
  src: url('fonts/MatterSQ-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

:root {
  /* Litteraturhusets offisielle fargepalett */
  --green-deep:   #1a3f00;   /* Grønn 5 Mørk */
  --green-mid:    #265b00;   /* Grønn 4 Dus */
  --green-neutral:#4d9916;   /* Grønn 3 Nøytral */
  --green-sharp:  #4ab200;   /* Grønn 2 Skarp */
  --green-pale:   #edffe0;   /* Grønn 1 Lys */
  --green-border: #1a3f00;
  --white:        #FFFFFF;
  --off-white:    #f7fdf2;
  --text:         #1a3f00;
  --text-light:   #4d7030;
  --error:        #B5190F;
  --warning-bg:   #FFF8E7;
  --border:       1.4px solid var(--green-border);
  --radius:       4px;
  --shadow:       0 2px 8px rgba(26,63,0,0.12);
  --font-display: 'Louize', Georgia, serif;
  --font-body:    'MatterSQ', system-ui, sans-serif;
  /* Varm gull-aksent */
  --gold:         #c8860a;
  --gold-mid:     #e6a820;
  --gold-light:   #fff6e0;
  --gold-border:  #e8c97a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--green-deep); text-decoration: underline; }
a:hover { color: var(--green-sharp); }

/* ── HEADER ─────────────────────────────────────────────────────── */
.site-header {
  background: var(--green-deep);
  border-bottom: var(--border);
  padding: 0 2rem;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.site-logo-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 14px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 1.4px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.header-nav a:hover {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.5);
}

/* ── MAIN CONTAINER ──────────────────────────────────────────────── */
main {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 1.5rem 4rem;
}

main.wide {
  max-width: 1100px;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  border-top: var(--border);
}

.site-footer a {
  color: rgba(255,255,255,0.75);
}

/* ── TYPOGRAPHY ──────────────────────────────────────────────────── */
h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--green-deep);
}

h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--green-deep);
}

h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--green-deep);
}

p { line-height: 1.65; margin-bottom: 1rem; }

.lead {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.page-header {
  border-bottom: var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-style: italic;
}

/* ── STEP INDICATOR ──────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  white-space: nowrap;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(26,63,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
  flex-shrink: 0;
  color: var(--text-light);
}

.step.active {
  color: var(--green-deep);
  font-weight: 600;
}

.step.active .step-num {
  background: var(--green-deep);
  color: var(--white);
  border-color: var(--green-deep);
  font-style: normal;
  font-weight: 700;
}

.step.done .step-num {
  background: var(--gold-light);
  color: var(--gold);
  border-color: var(--gold-border);
  font-style: normal;
  font-size: 0.82rem;
}

.step-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--green-border), transparent);
  opacity: 0.2;
  margin: 0 0.6rem;
}

/* ── FORMS ───────────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border: var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.form-card h2 {
  font-style: italic;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(232,201,122,0.4);
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-deep);
}

label .required {
  color: var(--error);
  margin-left: 2px;
}

label .hint {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.8rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
select,
textarea {
  border: var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-sharp);
  box-shadow: 0 0 0 3px rgba(58,122,85,0.15);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.age-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.age-row input {
  width: 80px;
}

.age-sep {
  font-size: 0.9rem;
  color: var(--text-light);
  flex-shrink: 0;
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border: var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--green-deep);
  color: var(--white);
  border-color: var(--green-deep);
}

.btn-primary:hover {
  background: var(--green-sharp);
  color: var(--white);
  border-color: var(--green-sharp);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--green-deep);
}

.btn-outline:hover {
  background: var(--green-pale);
}

.btn-danger {
  background: transparent;
  color: var(--error);
  border-color: var(--error);
}

.btn-danger:hover {
  background: #FFF0EF;
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ── ALERTS ──────────────────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border-left: 4px solid;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.alert-error {
  background: #FFF0EF;
  border-left-color: var(--error);
  color: var(--error);
}

.alert-success {
  background: var(--green-pale);
  border-left-color: var(--green-sharp);
  color: var(--green-deep);
}

.alert-warning {
  background: #f0ecff;
  border-left-color: #7c5cbf;
  color: #3d1f7a;
}

.alert-info {
  background: var(--warning-bg);
  border-left-color: #C89810;
  color: #7A5C00;
}

/* ── DATE TABLE (step 2) ─────────────────────────────────────────── */
.date-table-header {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
  padding: 0 0.6rem;
}

.dth-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

.date-table {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.date-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  transition: background 0.1s;
}

.date-row:hover {
  background: rgba(26,63,0,0.03);
}

.date-col {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.dr-weekday {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.dr-day {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--green-deep);
}

.dr-onsdag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  font-style: normal;
  color: #7c4700;
  background: #fff0d6;
  border: 1px solid #e6c07a;
  padding: 0.1rem 0.4rem;
  border-radius: 20px;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.date-row.wednesday-row {
  background: #fffaf0;
  border-left: 3px solid #e6c07a;
  padding-left: 0.4rem;
}

.date-row.wednesday-row:hover {
  background: #fff5e0;
}

.wednesday-info {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #fff8e6;
  border: 1px solid #e6c07a;
  border-left: 4px solid #d4940a;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
  color: #5a3a00;
}

.wednesday-info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.wednesday-info strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.9rem;
}

.slot-btn {
  border: var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.3rem;
}

.slot-btn.available {
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.12s;
}

.slot-btn.available:hover {
  border-color: var(--green-sharp);
  box-shadow: var(--shadow);
  background: var(--off-white);
}

.slot-btn.available.selected {
  border-color: var(--green-deep);
  background: var(--green-pale);
  box-shadow: 0 0 0 3px rgba(26,63,0,0.12);
}

.slot-btn.unavailable {
  background: #f5f5f5;
  border-color: #ddd;
  cursor: default;
}

.slot-btn-time {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.slot-btn.unavailable .slot-btn-time {
  color: #bbb;
}

.slot-unavail-badge {
  font-size: 0.69rem;
  font-weight: 600;
  color: #999;
  background: #e6e6e6;
  padding: 0.1rem 0.45rem;
  border-radius: 20px;
  white-space: nowrap;
}

.slot-rank {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── SUMMARY / CONFIRM ───────────────────────────────────────────── */
.summary-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table tr {
  border-bottom: 1.4px solid rgba(28,61,46,0.1);
}

.summary-table td {
  padding: 0.65rem 0;
  vertical-align: top;
}

.summary-table td:first-child {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-light);
  width: 160px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── SUCCESS PAGE ────────────────────────────────────────────────── */
.success-wrap {
  text-align: center;
  padding: 3rem 1rem 4rem;
}

.success-emblem {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}

.success-wrap h1 {
  font-size: 2.6rem;
  font-style: italic;
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.success-wrap .lead {
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
}

.success-card {
  background: var(--white);
  border: var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  max-width: 500px;
  margin: 0 auto 1.5rem;
  padding: 1.75rem 2rem;
  text-align: left;
}

.success-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--green-deep);
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-pale);
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* ── ADMIN: DASHBOARD ────────────────────────────────────────────── */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: var(--border);
  margin-bottom: 2rem;
}

.admin-tab {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.4px;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-body);
  transition: color 0.15s;
}

.admin-tab:hover { color: var(--green-deep); }
.admin-tab.active {
  color: var(--green-deep);
  border-bottom-color: var(--green-deep);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.admin-tab-dropdown { position: relative; display: inline-flex; }
.admin-tab-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: #fff;
  border: 1px solid var(--green-border);
  border-radius: 6px;
  min-width: 140px;
  z-index: 200;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  overflow: hidden;
}
.admin-tab-dropdown-menu.open { display: block; }
.admin-tab-dropdown-menu button {
  display: block; width: 100%; text-align: left;
  padding: 0.55rem 1rem; background: none; border: none;
  cursor: pointer; font-size: 0.88rem; color: var(--text-light);
  font-family: var(--font-body); font-weight: 500;
}
.admin-tab-dropdown-menu button:hover { background: var(--green-light); color: var(--green-deep); }

.varsel-strip {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; align-items: center;
  background: #fffbf0; border: 1px solid #f0d9a0;
  border-radius: 8px; padding: 0.7rem 1rem; margin-bottom: 1.5rem;
}
.varsel-item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; color: var(--green-dark);
  text-decoration: none; font-weight: 500; cursor: pointer; background: none; border: none;
  font-family: var(--font-body);
}
.varsel-item:hover { text-decoration: underline; }
.varsel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #c89a0a; flex-shrink: 0;
}
.varsel-dot--urgent { background: #c0392b; }

.booking-list { display: flex; flex-direction: column; gap: 0.75rem; }

.booking-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 1rem;
  align-items: center;
  border: var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  background: var(--white);
}

.booking-row:hover { border-color: var(--green-sharp); }

.booking-row--comment { border-left: 3px solid var(--error); }

.booking-meta { font-size: 0.82rem; color: var(--text-light); margin-top: 0.2rem; }

.tilrettelegging-merknad {
  font-size: 0.85rem;
  color: var(--error);
  font-weight: 500;
  max-width: 320px;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pending  { background: #FFF8E7; color: #7A5C00; border: 1px solid #C89810; }
.badge-approved { background: var(--green-pale); color: var(--green-deep); border: 1px solid var(--green-sharp); }
.badge-rejected { background: #FFF0EF; color: var(--error); border: 1px solid var(--error); }

/* ── ADMIN: CALENDAR – HEATMAP ───────────────────────────────────── */
.cal-hm-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cal-hm-month-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-deep);
  min-width: 180px;
  text-align: center;
}

.cal-hm-grid {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
  display: inline-block;
  min-width: 100%;
}

.cal-hm-headers,
.cal-hm-row {
  display: grid;
  grid-template-columns: 56px repeat(5, 1fr);
}

.cal-hm-headers {
  background: var(--green-pale);
  border-bottom: var(--border);
}

.cal-hm-row {
  border-bottom: 1.4px solid rgba(28,61,46,0.07);
  cursor: pointer;
  transition: outline 0.1s;
}

.cal-hm-row:last-child { border-bottom: none; }

.cal-hm-row:hover { background: rgba(45,122,45,0.04); }

.cal-hm-row.selected {
  outline: 2.5px solid var(--green-sharp);
  outline-offset: -2px;
  background: rgba(45,122,45,0.05);
}

.cal-hm-cell {
  padding: 0.4rem 0.3rem;
  font-size: 0.8rem;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  border-right: 1.4px solid rgba(28,61,46,0.07);
}

.cal-hm-cell:last-child { border-right: none; }

.cal-hm-head {
  min-height: unset;
  padding: 0.4rem 0.5rem;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--green-deep);
  text-align: center;
  align-items: center;
  justify-content: center;
}

.cal-hm-wk-col { min-height: unset; }

.cal-hm-wk-num {
  font-size: 0.7rem;
  color: var(--text-light);
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(28,61,46,0.025);
  min-height: 62px;
}

.cal-hm-day-cell {
  padding: 0.35rem 0.4rem;
  gap: 0.25rem;
  position: relative;
  transition: filter 0.1s;
}

.cal-hm-row:hover .cal-hm-day-cell { filter: brightness(0.96); }

.cal-hm-day-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1;
}

.cal-hm-other-month .cal-hm-day-num { color: #ccc; }

.cal-hm-closed {
  background: #f2f2f2 !important;
}

.cal-hm-closed .cal-hm-day-num { color: #bbb; }

.cal-hm-other-month {
  background: transparent !important;
}

.cal-hm-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
}

.cal-hm-bar {
  height: 5px;
  background: rgba(0,0,0,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.cal-hm-bar-fill {
  height: 100%;
  background: rgba(28,61,0,0.45);
  border-radius: 3px;
  transition: width 0.3s;
}

.cal-hm-bar--empty {
  background: rgba(220,53,69,0.15);
  border: 1px dashed rgba(220,53,69,0.5);
}

.cal-hm-has-empty {
  outline: 2px solid rgba(220,53,69,0.35);
  outline-offset: -2px;
}

.cal-hm-counts {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-light);
  margin-top: 2px;
  line-height: 1;
}

.cal-hm-counts .cal-hm-count--empty {
  color: rgba(220,53,69,0.8);
  font-weight: 600;
}

.cal-hm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.cal-hm-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cal-hm-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

/* ── ADMIN: CALENDAR – WEEK PANEL ────────────────────────────────── */
.cal-week-panel {
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.cal-week-panel-header {
  background: var(--green-pale);
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-deep);
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cal-week-panel-header::before {
  content: "↓";
  font-size: 0.75rem;
  opacity: 0.6;
}

.cal-week-body { padding: 1rem; }

.cal-week-empty {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem 0;
}

.cal-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.cal-week-day {
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cal-wk-day-header {
  background: var(--green-pale);
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--green-deep);
  border-bottom: var(--border);
}

.cal-wk-slots {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cal-wk-slot {
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  border-bottom: 1.4px solid rgba(28,61,46,0.07);
}

.cal-wk-slot:last-child { border-bottom: none; }

.cal-wk-slot-label {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cal-slot-cap {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.cal-booking {
  font-size: 0.78rem;
  padding: 0.2rem 0.4rem;
  background: var(--green-pale);
  border-radius: 2px;
  margin-bottom: 0.2rem;
  border-left: 3px solid var(--green-sharp);
}

.cal-booking--exclusive {
  background: #f0ecff;
  border-left-color: #7c5cbf;
}

.cal-booking-comment {
  font-size: 0.74rem;
  color: #7c4700;
  margin-top: 0.15rem;
}

.cal-exclusive-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #f0ecff;
  border: 1px solid #c5b8f0;
  border-left: 4px solid #7c5cbf;
  border-radius: 4px;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #3d1f7a;
}

.cal-exclusive-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.cal-exclusive-alert strong {
  display: block;
  font-size: 0.78rem;
}

.cal-exclusive-comment {
  font-size: 0.76rem;
  margin-top: 0.15rem;
  color: #5a3a9a;
  font-style: italic;
}

/* Detail page: exclusive toggle */
.exclusive-toggle-field {
  background: #f9f7ff;
  border: 1px solid #d8d0f0;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-top: 1rem;
}

.exclusive-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--green-deep);
}

.exclusive-toggle-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: #7c5cbf;
}

.exclusive-toggle-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0.35rem 0 0 1.6rem;
}

/* Detail page: existing comment display */
.exclusive-comment-display {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #fff8e6;
  border: 1px solid #e6c07a;
  border-left: 4px solid #d4940a;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: #5a3a00;
  margin-bottom: 0.75rem;
}

.exclusive-comment-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.cap-bar {
  height: 4px;
  background: #e0ebe3;
  border-radius: 2px;
  margin-bottom: 0.4rem;
  overflow: hidden;
}

.cap-bar-fill {
  height: 100%;
  background: var(--green-sharp);
  border-radius: 2px;
  transition: width 0.3s;
}

.cap-bar-fill.full { background: var(--error); }

/* ── ADMIN: DETAIL ───────────────────────────────────────────────── */
.detail-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

/* ── SLOT OCCUPANCY (admin detail) ───────────────────────────────── */
.slot-occ-card {
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.slot-occ-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: var(--green-pale);
  gap: 1rem;
}

.slot-occ-rank {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-right: 0.5rem;
}

.slot-occ-cap {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-neutral);
  white-space: nowrap;
}

.slot-occ-cap--full {
  color: var(--error);
}

.slot-occ-body {
  padding: 0.6rem 1rem;
  background: var(--white);
}

.slot-occ-empty {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

.slot-occ-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.slot-occ-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.3rem 0;
  border-top: 1.4px solid rgba(26,63,0,0.07);
  font-size: 0.88rem;
}

.slot-occ-name {
  font-weight: 600;
  color: var(--green-deep);
  min-width: 160px;
}

.slot-occ-meta {
  color: var(--text-light);
  font-size: 0.82rem;
}

.slot-choice {
  border: var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.slot-choice:has(input:checked) {
  border-color: var(--green-deep);
  background: var(--green-pale);
}

.slot-choice input[type="radio"] {
  width: auto;
  appearance: auto;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  .form-grid { grid-template-columns: 1fr; }
  .booking-row { grid-template-columns: 1fr; }
  main { padding: 1.5rem 1rem 3rem; }
  .cal-hm-grid { overflow-x: auto; }
  .cal-week-grid { grid-template-columns: 1fr; }
}

/* ── HOME PAGE – Litteraturhuset-stil ───────────────────────────── */

/* Intro: split tittel/tekst */
.lh-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
  padding: 2.5rem 0 2rem;
}

.lh-heading {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--green-deep);
  font-style: normal;
  margin: 0;
}

.lh-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* Fullbredde-foto */
.lh-hero-photo {
  margin: 0 -1.5rem;
  width: calc(100% + 3rem);
  aspect-ratio: 16 / 7;
  min-height: 320px;
  overflow: hidden;
}

.lh-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

/* Book-seksjon: lys grønn bakgrunn, sentrert */
.lh-book-section {
  margin: 0 -1.5rem;
  padding: 3.5rem 2rem 3rem;
  background: var(--green-pale);
  text-align: center;
}

.lh-book-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
  font-style: normal;
}

.lh-book-desc {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.lh-book-btn {
  background: transparent;
  color: var(--green-deep);
  border: 1.5px solid var(--green-deep);
  font-size: 1rem;
  padding: 0.75rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2.5rem;
}

.lh-book-btn:hover {
  background: var(--green-deep);
  color: var(--white);
}

/* Steg-forklaring under knappen */
.lh-how {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-light);
}

.lh-how-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lh-how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.2px solid var(--green-neutral);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-mid);
  flex-shrink: 0;
}

.lh-how-divider {
  color: var(--green-neutral);
  opacity: 0.5;
  font-size: 0.8rem;
}

/* Praktisk info: to kolonner, ren tekst */
.lh-info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(26,63,0,0.15);
  border-bottom: 1px solid rgba(26,63,0,0.15);
  margin: 2.5rem 0 0;
}

.lh-info-col h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  margin-top: 1.25rem;
  color: var(--green-deep);
}

.lh-info-col h3:first-child { margin-top: 0; }

.lh-info-col p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0 0 0.25rem;
  line-height: 1.6;
}

/* Oslo Kommune-banner */
.lh-oslo-banner {
  background: var(--green-deep);
  color: #fff;
  margin: 2.5rem -3rem 0;
  padding: 1.75rem 3rem;
}

.lh-oslo-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 720px;
}

.lh-oslo-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.lh-oslo-banner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.lh-oslo-banner p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.88;
  line-height: 1.5;
}

/* Ekstra luft under galleriet */
.lh-info-section--bottom {
  margin-top: 2.5rem;
}

/* Bildeplassholder for fortellere */
.lh-gallery-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--green-light);
  border: 2px dashed var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  font-style: italic;
}

/* «Tilbudet er gratis» */
.lh-gratis {
  text-align: center;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--green-mid);
  font-size: 1rem;
  margin: 1.75rem 0 2rem;
}

/* Bildegalleri */
.lh-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 -1.5rem 0.5rem;
  width: calc(100% + 3rem);
}

.lh-gallery--wide {
  grid-template-columns: 1fr 1fr 1fr;
}

.lh-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .lh-intro { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 0 1rem; }
  .lh-heading { font-size: 2.6rem; }
  .lh-hero-photo { margin: 0 -1.5rem; width: calc(100% + 3rem); aspect-ratio: 4/3; }
  .lh-book-section { margin: 0 -1.5rem; padding: 2.5rem 1.5rem; }
  .lh-book-title { font-size: 2rem; }
  .lh-info-section { grid-template-columns: 1fr; }
  .lh-gallery { grid-template-columns: 1fr; }
  .lh-gallery--wide { grid-template-columns: 1fr 1fr; }
  .lh-oslo-banner { margin: 2.5rem -1.5rem 0; padding: 1.5rem 1.5rem; }
}

/* ── HOME PAGE (gammel overlay-hero, beholdes) ───────────────────── */

/* Hero med bilde */
.hero-img {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  margin: -3rem -1.5rem 0;
  width: calc(100% + 3rem);
  aspect-ratio: 16 / 7;
  min-height: 400px;
  border: none;
  border-bottom: 2px solid var(--gold-border);
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,28,0,0.88) 0%,
    rgba(10,28,0,0.55) 45%,
    rgba(10,28,0,0.15) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 3rem 3rem;
}

.hero-kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 0.6rem;
}

.hero-img-overlay h1 {
  color: var(--white);
  font-size: 3.4rem;
  line-height: 1.08;
  margin-bottom: 0.6rem;
  font-style: italic;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-img-overlay p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 460px;
  font-style: italic;
  font-family: var(--font-display);
}

.btn-hero {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  font-weight: 700;
  align-self: flex-start;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
}

.btn-hero:hover {
  background: var(--gold-mid);
  color: var(--white);
  border-color: var(--gold-mid);
  box-shadow: 0 4px 16px rgba(200,134,10,0.35);
}

/* Bildegalleri */
.gallery-section {
  margin: 2rem 0 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 6px;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-img:hover { transform: scale(1.03); }
.gallery-img--tall { grid-row: span 2; overflow: hidden; }

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-col .gallery-img {
  height: 197px;
}

.photo-credit {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: right;
  margin-top: 0.4rem;
  font-style: italic;
}

/* Steg-forklaring */
.steps-explainer {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.step-explain {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1.4px solid rgba(26,63,0,0.1);
}

.step-explain:last-child { border-bottom: none; }

.step-explain-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold-border);
  background: var(--gold-light);
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deep);
  flex-shrink: 0;
}

.step-explain h3 {
  margin-bottom: 0.25rem;
  font-size: 1.02rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.step-explain p  { margin: 0; font-size: 0.88rem; color: var(--text-light); line-height: 1.55; }

@media (max-width: 640px) {
  .hero-img {
    aspect-ratio: 3/4;
    margin: -3rem -1.5rem 0;
    width: calc(100% + 3rem);
    min-height: 340px;
  }
  .hero-img-overlay { padding: 1.5rem 1.5rem 2rem; }
  .hero-img-overlay h1 { font-size: 2.2rem; }
  .hero-kicker { font-size: 0.65rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 140px 140px; }
  .gallery-img--tall:last-child { display: none; }
  .gallery-col .gallery-img { height: 137px; }
  .success-wrap { padding: 2rem 0.5rem 3rem; }
  .success-wrap h1 { font-size: 2rem; }
}

/* Gammel hero (beholdes for bakoverkompatibilitet) */
.hero {
  border: var(--border);
  border-radius: var(--radius);
  background: var(--green-deep);
  color: var(--white);
  padding: 3rem 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.hero .lead {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-card {
  border: var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--white);
  padding: 1.5rem 1.4rem;
}

.info-card-icon {
  display: none;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--green-deep);
}

.info-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* ── ADMIN: PROGRESS TABLE ──────────────────────────────────────── */
.progress-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.progress-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  padding: 0.4rem 0.6rem;
  border-bottom: var(--border);
}

.progress-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1.4px solid rgba(26,63,0,0.07);
  vertical-align: middle;
}

.progress-table tfoot td {
  padding-top: 0.75rem;
}

/* ── FREMGANG: fill cell ────────────────────────────────────────── */
.month-fill-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px 0;
}

.month-fill-pct {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.month-fill-pct.fill-high { color: #1a7f3c; }
.month-fill-pct.fill-mid  { color: #c07800; }
.month-fill-pct.fill-low  { color: #aab0a8; }

.month-fill-bar {
  height: 8px;
  background: #e0ebe3;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

.month-fill-bar-inner {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.month-fill-bar-inner.fill-high { background: #1a7f3c; }
.month-fill-bar-inner.fill-mid  { background: #f0a500; }
.month-fill-bar-inner.fill-low  { background: #b5c9ba; }

/* ── CAPACITY CALCULATOR HINT (Innstillinger) ───────────────────── */
.cap-calc-hint {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-light);
  min-height: 1.2em;
}
.cap-calc-hint.cap-calc-good {
  color: #1a7f3c;
  font-weight: 600;
}

/* ── MONTH NAVIGATION (step 2) ──────────────────────────────────── */
.month-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.month-btn {
  background: var(--white);
  border: var(--border);
  border-radius: 20px;
  padding: 0.35rem 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.month-btn:hover {
  background: var(--green-pale);
  border-color: var(--green-sharp);
}

.month-btn.active {
  background: var(--green-deep);
  color: var(--white);
  border-color: var(--green-deep);
}

/* ── ADMIN: OPTIMALISERING ──────────────────────────────────────── */
.opt-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.opt-sum-block {
  text-align: center;
  min-width: 80px;
}

.opt-sum-block--good .opt-sum-num { color: var(--green-mid); }
.opt-sum-block--warn .opt-sum-num { color: #b86000; }

.opt-sum-num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green-deep);
}

.opt-sum-label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

.opt-sum-arrow {
  font-size: 1.2rem;
  color: var(--text-light);
}

.opt-slot-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.opt-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--off-white);
  border-bottom: var(--border);
}

.opt-slot-date {
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-deep);
  margin-right: 0.5rem;
}

.opt-slot-time {
  font-size: 0.88rem;
  color: var(--text-light);
}

.opt-cap-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.opt-cap-bar {
  width: 120px;
  height: 10px;
  background: #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}

.opt-cap-seg {
  height: 100%;
  transition: width 0.3s;
}

.opt-cap-seg--existing { background: var(--green-neutral); opacity: 0.5; }
.opt-cap-seg--new      { background: var(--green-sharp); }

.opt-cap-label {
  font-size: 0.8rem;
  color: var(--text-light);
  white-space: nowrap;
}

.opt-booking-list {
  display: flex;
  flex-direction: column;
}

.opt-booking-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(26,63,0,0.07);
  cursor: pointer;
  transition: background 0.1s;
}

.opt-booking-row:last-child { border-bottom: none; }
.opt-booking-row:hover { background: var(--off-white); }

.opt-booking-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green-deep);
  flex-shrink: 0;
}

.opt-booking-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.opt-booking-meta {
  font-size: 0.82rem;
  color: var(--text-light);
}

.opt-comment {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #7a4f00;
  background: #fff8ed;
  border-left: 3px solid #f0a500;
  padding: 0.25rem 0.5rem;
  border-radius: 0 4px 4px 0;
  margin-top: 0.15rem;
  line-height: 1.4;
}

.opt-comment svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #f0a500;
}

.opt-priority-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  white-space: nowrap;
}

.opt-priority-badge--1 {
  background: var(--green-pale);
  color: var(--green-deep);
  border: 1px solid var(--green-sharp);
}

.opt-priority-badge--2 {
  background: #fff8e7;
  color: #7a4f00;
  border: 1px solid #e6c96b;
}

.opt-priority-badge--3 {
  background: #f3f3f3;
  color: #666;
  border: 1px solid #ccc;
}

.opt-unplaced {
  background: #fff8f0;
  border: 1.4px solid #e6b87a;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.opt-unplaced h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #8a4500;
}

.opt-unplaced-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(230,184,122,0.4);
  font-size: 0.88rem;
}

.opt-unplaced-row:last-child { border-bottom: none; }

/* ── ADMIN: STATS PANEL ─────────────────────────────────────────── */
.stats-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-block {
  flex: 1 1 140px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  min-width: 120px;
}

.stat-block--season {
  flex: 1.5 1 200px;
}

.stat-block--warn {
  border-color: #C89810;
  background: #FFF8E7;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green-deep);
  margin-bottom: 0.4rem;
}

.stat-value-sm {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.3rem;
}

.stat-goal {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.stat-bar {
  height: 6px;
  background: var(--green-pale);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.stat-bar-fill {
  height: 100%;
  background: var(--green-sharp);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-light);
}

