.calendar-actions{display:flex;align-items:center;gap:10px}
.agenda-count{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:6px;background:#eaf0e3;font-size:10px;font-weight:600}
.booking-calendar .calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#f9fbf6;border-bottom:1px solid #e4ebdc}
.calendar-weekdays>span{padding:14px 4px;text-align:center;color:#738568;font-size:11px}
.calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:36px var(--holiday-row,0px) repeat(var(--lanes),34px) 12px;position:relative;border-bottom:1px solid #e4ebdc;isolation:isolate}
.calendar-cell{grid-row:1/-1;position:relative;min-width:0;border-right:1px solid #e8ede3;background:#fff}
.calendar-cell:nth-child(7){border-right:0}
.calendar-cell.outside-month{background:#fafbf8}
.calendar-cell.is-today{background:#f5f9f0}
.calendar-cell .calendar-create{padding:8px 10px;font-size:11px}
.date-number{display:grid;place-items:center;min-width:24px;height:24px;border-radius:50%}
.is-today .date-number{background:#345c40;color:white}
.outside-date{display:block;padding:11px 16px;color:#b0baa9;font-size:11px}
.calendar-week .reservation-bar{z-index:1;min-width:0;display:flex;align-items:center;gap:4px;align-self:stretch;margin:2px 5px;padding:0 9px;text-align:left;border-radius:5px;border:1px solid color-mix(in srgb,var(--booking-color) 28%,white);border-left:3px solid var(--booking-color);background:color-mix(in srgb,var(--booking-color) 12%,white);color:var(--booking-color);font-size:11px;line-height:1.4;cursor:pointer;transition:filter .15s,box-shadow .15s}
.reservation-bar:hover{filter:brightness(.96);box-shadow:0 2px 6px #19392e15}
.calendar-week .reservation-bar:focus-visible{outline:2px solid var(--booking-color);outline-offset:1px}
.reservation-bar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.reservation-bar-label strong{font-size:10px;font-weight:600;letter-spacing:.15px}
.reservation-bar-label>span{font-size:10px}
.calendar-week .private-use{background:color-mix(in srgb,var(--booking-color) 5%,white);border:1px dashed var(--booking-color)}
.calendar-week .monthly-lease{background:color-mix(in srgb,var(--booking-color) 18%,white)}
.calendar-week .continues-before{border-top-left-radius:0;border-bottom-left-radius:0;border-left:0;margin-left:0;padding-left:5px}
.calendar-week .continues-after{border-top-right-radius:0;border-bottom-right-radius:0;border-right:0;margin-right:0;padding-right:5px}
.range-arrow{font-size:15px;line-height:1;opacity:.7;flex:none}
.booking-calendar .calendar-legend{font-size:10px;align-items:center;padding:17px 20px}
.booking-calendar .calendar-legend i{width:7px;height:7px}
.booking-calendar .private-use-legend i{width:14px;height:9px;border:1px dashed #7a8f6d;border-radius:2px;background:transparent}
.booking-calendar .calendar-legend small{font-size:10px;max-width:100%;line-height:1.6}
dialog.calendar-drawer{inset:0 0 0 auto;margin:0;width:min(440px,100%);max-width:100%;height:100dvh;max-height:100dvh;border:0;border-left:1px solid #dce5d5;border-radius:14px 0 0 14px;box-shadow:-15px 0 70px #19392e24;overflow:hidden}
.calendar-drawer[open]{animation:agenda-enter .2s ease-out}
.calendar-drawer::backdrop{background:#142b2140;backdrop-filter:blur(2px)}
.calendar-drawer #dialog-content{display:flex;flex-direction:column;height:100%;min-height:0}
.calendar-drawer .modal-head{padding:28px 25px 23px;flex:none}
.calendar-drawer .modal-head h2{font-size:28px}
.calendar-drawer .modal-head p{margin-top:8px;font-size:12px}.calendar-drawer .modal-head p::first-letter{text-transform:uppercase}
.calendar-drawer .modal-body{padding:8px 25px 24px;overflow-y:auto;flex:1;overscroll-behavior:contain}
.calendar-drawer .modal-footer{padding:18px 25px;flex:none}
.calendar-drawer .agenda-item{padding:23px 28px 23px 14px;gap:8px;color:#47643b}
.calendar-drawer .agenda-item:first-child{border-top:0}
.calendar-drawer .agenda-property{font-size:11px;font-weight:600}
.calendar-drawer .agenda-property .chip{font-size:9px;font-weight:500}
.calendar-drawer .agenda-item strong{font-size:15px;overflow-wrap:anywhere}
.calendar-drawer .agenda-item>span:not(.agenda-property){font-size:12px}
.calendar-drawer .agenda-item>small{font-size:11px}
.calendar-drawer .agenda-item>.icon{position:absolute;right:0;top:50%;width:16px;height:16px;color:#8c9b81}
.calendar-drawer .quiet-note{font-size:11px;border-top:1px solid #e7eddf;padding-top:20px;margin-top:10px}
.calendar-drawer .agenda-empty{padding:36px 0;font-size:14px}
.calendar-drawer .agenda-back{display:block;margin:12px 0 28px;font-size:12px}
.calendar-drawer .detail-text{margin-top:18px}
body:has(.calendar-drawer[open]){overflow:hidden}
@keyframes agenda-enter{from{transform:translateX(35px);opacity:.5}to{transform:translateX(0);opacity:1}}
@media(min-width:1600px){.calendar-week{grid-template-rows:40px var(--holiday-row,0px) repeat(var(--lanes),38px) 16px}.calendar-week .reservation-bar{font-size:12px}.reservation-bar-label strong,.reservation-bar-label>span{font-size:11px}}
@media(max-width:760px){
 .calendar-toolbar{flex-wrap:wrap;gap:14px}
 .calendar-actions{margin-left:auto;gap:8px}
 .calendar-toolbar .calendar-actions .btn{font-size:11px;padding:10px 12px;min-height:39px}
 .calendar-week{grid-template-rows:32px var(--holiday-row,0px) repeat(var(--lanes),28px) 8px}
 .calendar-weekdays>span{padding:11px 2px;font-size:10px}
 .calendar-cell .calendar-create{padding:5px 3px;font-size:10px}
 .date-number{min-width:22px;height:22px}
 .outside-date{padding:7px 8px;font-size:10px}
 .calendar-week .reservation-bar{padding:0 4px;margin:2px 2px;gap:2px;border-left-width:2px}
 .reservation-bar-label strong,.reservation-bar-label>span{font-size:9px;letter-spacing:0}
 .calendar-week .continues-before{margin-left:0;border-left:0;padding-left:2px}
 .calendar-week .continues-after{margin-right:0;border-right:0;padding-right:2px}
 .range-arrow{font-size:12px}
 .booking-calendar .calendar-legend{padding:15px 12px;font-size:9px}
 .booking-calendar .calendar-legend small{font-size:10px;margin-top:3px}
}
@media(max-width:480px){.calendar-toolbar .calendar-month-control{width:100%;justify-content:space-between}.calendar-month-label{justify-content:center}.calendar-actions{width:100%}.calendar-actions .btn{flex:1}dialog.calendar-drawer{border-radius:0}.calendar-drawer .modal-head{padding:24px 20px 20px}.calendar-drawer .modal-body{padding:6px 20px 20px}.calendar-drawer .modal-footer{padding:16px 20px}}
@media(prefers-reduced-motion:reduce){.calendar-drawer[open]{animation:none}.calendar-week .reservation-bar{transition:none}}

/* Holidays occupy their own row, leaving reservation ranges and date clicks intact. */
.calendar-cell.has-holiday{background:#fffcf5}
.has-holiday .date-number{color:#835b20;font-weight:600}
.has-holiday.is-today .date-number{color:white}
.holiday-marker{z-index:1;min-width:0;display:flex;align-items:center;gap:5px;margin:0 5px 4px;padding:2px 5px;border-radius:4px;background:#f8edda;color:#78521c;text-align:left;font-size:10px;line-height:1.4}
.holiday-marker:hover{background:#f0dfbf}
.holiday-marker>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.holiday-marker:focus-visible{outline:2px solid #967030;outline-offset:1px}
.holiday-dot{display:inline-block;width:6px;height:6px;flex:none;border-radius:2px;background:#a6782c;transform:rotate(45deg)}
.holiday-marker.holiday-projected{background:#fffaf0;border:1px dashed #c3a371}
.calendar-holiday-reference{padding:13px 20px;border-top:1px solid #edf0e8;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#fdfefb;font-size:10px;color:#7b896e}
.holiday-source-button{display:flex;align-items:center;gap:8px;padding:3px 0;background:none;color:#78602e;font-size:11px}
.holiday-source-button:hover{text-decoration:underline;text-underline-offset:3px}
.holiday-detail>p{font-size:13px;line-height:1.8;margin:16px 0;color:#5f7054}
.holiday-badge{display:inline-block;padding:6px 10px;border-radius:5px;background:#f8edda;color:#78521c;font-size:11px}
.holiday-sources{display:flex;flex-direction:column;gap:10px;margin:20px 0}
.holiday-sources a{display:block;padding:15px;border:1px solid #e0e7da;border-radius:7px;background:#f9fbf6}
.holiday-sources a:hover{border-color:#92a47c;background:#f0f5e9}
.holiday-sources strong{display:block;font-size:12px;font-weight:500;line-height:1.6}
.holiday-sources small{display:block;font-size:11px;color:#748167;margin-top:5px}
.holiday-detail p.quiet-note{font-size:11px;line-height:1.7;color:#7b896e;margin-bottom:0}
.holiday-coverage{padding:12px;border-radius:5px;background:#fbf6eb}
@media(max-width:760px){.holiday-marker{margin:0 2px 4px;padding:2px 3px;gap:3px;font-size:9px}.holiday-marker .holiday-dot{width:4px;height:4px}.calendar-holiday-reference{padding:12px;gap:7px}.calendar-holiday-reference>span{font-size:9px}}
