/* Public booking calendar: free / booked / closed day marks (app/front.py day_states, site/booking-days.js).
   Neutral dots by default; [booking] day_icons = "window" adds .day-icons--window: green open window, red closed window.
   Colour is never the only signal: the shapes differ and every icon carries a spoken label. */
:root { --day-free: #1b7f4b; --day-booked: #c0392b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --day-free: #4cc38a; --day-booked: #ff7a6e; } }
:root[data-theme="dark"] { --day-free: #4cc38a; --day-booked: #ff7a6e; }

.flatpickr-day { position: relative; }
.flatpickr-day .day-icon { position: absolute; right: 2px; bottom: 2px; line-height: 0; pointer-events: none; }
.flatpickr-day .day-icon__svg { width: 12px; height: 12px; }
.flatpickr-day[data-state="closed"]:not(.selected) { opacity: .75; }

.day-icons--window [data-state="free"] .day-icon { color: var(--day-free); }
.day-icons--window [data-state="booked"] .day-icon,
.day-icons--window [data-state="closed"] .day-icon { color: var(--day-booked); }
.flatpickr-day.selected .day-icon { color: inherit; }

.day-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; list-style: none; margin: -.25rem 0 1.25rem; padding: 0; font-size: .85rem; color: var(--ink-soft, inherit); }
.day-legend[hidden] { display: none; }
.day-legend__item { display: inline-flex; align-items: center; gap: .35rem; }
.day-legend .day-icon { display: inline-flex; line-height: 0; }
.day-legend .day-icon__svg { width: 16px; height: 16px; }
