/* Hundepass: date picker with availability (js/hundepass-kalender.js). Uses the site tokens,
   so it follows the chosen site theme; the status colours carry a second cue (pattern/strike). */
.hpcal-intro { margin: -4px 0 10px; font-size: .9rem; color: var(--text-muted, #526557); }
.hpcal-field { position: relative; display: flex; align-items: stretch; }
.hpcal-field > input { flex: 1 1 auto; min-width: 0; cursor: pointer; padding-right: 46px; }
.hpcal-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px;
  border: 0; border-radius: 8px; background: transparent; color: var(--accent-green, #2A5D45); cursor: pointer; font-size: 1.05rem; }
.hpcal-toggle:hover, .hpcal-toggle:focus-visible { background: var(--brand-teal-light, #DFF3E6); }
.hpcal { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(340px, calc(100vw - 32px));
  background: var(--bg-card, #fff); color: var(--text-body, #4B4335); border: 1.5px solid var(--border-card, #D7E8DC);
  border-radius: 14px; box-shadow: 0 14px 40px rgba(20, 40, 30, .18); padding: 12px 12px 10px; line-height: 1.3; }
.hpcal[hidden] { display: none; }
.hpcal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.hpcal-head strong { font-family: var(--font-display, inherit); color: var(--text-heading, #1E3D2C); font-size: 1.02rem; }
.hpcal-head button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-card, #D7E8DC);
  background: var(--bg-card, #fff); color: var(--text-heading, #1E3D2C); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.hpcal-head button:disabled { opacity: .35; cursor: default; }
.hpcal-wd, .hpcal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.hpcal-wd span { text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted, #526557); padding: 2px 0 4px; }
.hpcal-days.hpcal-loading { min-height: 232px; }
.hpcal-day { aspect-ratio: 1 / 1; min-height: 38px; border: 1.5px solid transparent; border-radius: 9px; font: inherit; font-size: .92rem;
  font-weight: 600; cursor: pointer; padding: 0; position: relative; }
.hpcal-day.other { opacity: .55; }
.hpcal-day.s-ledig { background: #DFF3E6; color: #17402B; border-color: #B9DDC6; }
.hpcal-day.s-begrenset { background: #FBE7B0; color: #5E3D00; border-color: #EBCB73; }
.hpcal-day.s-delvis { background: repeating-linear-gradient(135deg, #FCD9B4, #FCD9B4 5px, #F8C690 5px, #F8C690 10px); color: #6B2C00; border-color: #E9A465; }
.hpcal-day.s-full { background: #F6CFCA; color: #8A1C12; border-color: #E7A49C; text-decoration: line-through; cursor: not-allowed; }
.hpcal-day.s-stengt { background: #EEF0EE; color: #9AA29C; cursor: not-allowed; font-weight: 400; }
.hpcal-day.today { box-shadow: inset 0 0 0 2px var(--accent-gold, #E0A83D); }
.hpcal-day.range { filter: saturate(1.3); box-shadow: inset 0 -3px 0 var(--accent-green, #2A5D45); }
.hpcal-day.chosen, .hpcal-day.edge { background: var(--accent-green, #2A5D45); color: #fff; border-color: var(--accent-green, #2A5D45); text-decoration: none; }
.hpcal-day:not(:disabled):hover { border-color: var(--accent-green, #2A5D45); }
.hpcal-day:focus-visible, .hpcal-head button:focus-visible, .hpcal-foot button:focus-visible { outline: 3px solid var(--accent-gold, #E0A83D); outline-offset: 1px; }
.hpcal-msg { margin: 8px 0 0; font-size: .82rem; color: var(--text-muted, #526557); min-height: 0; }
.hpcal-msg:empty { display: none; }
.hpcal-msg.error { color: #8A1C12; }
.hpcal-legend { list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid var(--border-card, #D7E8DC);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; font-size: .78rem; color: var(--text-muted, #526557); }
.hpcal-legend li { display: flex; align-items: center; gap: 6px; margin: 0; }
.hpcal-key { width: 14px; height: 14px; border-radius: 4px; flex: 0 0 14px; border: 1px solid rgba(0, 0, 0, .12); }
.hpcal-key.s-ledig { background: #DFF3E6; }
.hpcal-key.s-begrenset { background: #FBE7B0; }
.hpcal-key.s-delvis { background: repeating-linear-gradient(135deg, #FCD9B4, #FCD9B4 3px, #F8C690 3px, #F8C690 6px); }
.hpcal-key.s-full { background: #F6CFCA; }
.hpcal-key.s-stengt { background: #EEF0EE; }
.hpcal-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.hpcal-foot button { border: 0; background: none; color: var(--accent-green, #2A5D45); font: inherit; font-weight: 700; padding: 8px 10px; cursor: pointer; border-radius: 8px; }
.hpcal-hint { margin: -2px 0 10px; padding: 8px 12px; border-radius: 10px; background: #FFF3E3; color: #6B3A00; font-size: .88rem; }
.hpcal-check { margin: 4px 0 14px; padding: 12px 14px; border-radius: 10px; border-left: 4px solid #C94545; background: #FCE9E7; color: #7A1A12; font-weight: 600; font-size: .95rem; }
.hpcal-check.invalid { border-left-color: #C77D1F; background: #FFF4E5; color: #5E3D00; }
.hpcal-check[hidden], .hpcal-hint[hidden] { display: none; }
@media (max-width: 600px) {
  /* Phones: the calendar spans the form width under the field. */
  .hpcal { width: auto; right: 0; padding: 10px 8px 8px; }
  .hpcal-day { min-height: 40px; font-size: .95rem; }
}
