/* Four-villa booking calendar; brand aligned with CASA DI LEGNO. */
:root{--cdl-green:#425637;--cdl-terracotta:#bd813c;--cdl-cream:#faf8f2;--cdl-ink:#253329}
.cdl-booking{background:#f5f7f1;padding:78px 0;border-top:1px solid #e4e9df;border-bottom:1px solid #e4e9df}
.cdl-booking .cdl-lead{color:#687565;line-height:1.9;max-width:830px;margin:0 0 22px;font-size:14px}
.cdl-sec-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px}
.cdl-legend{display:flex;flex-wrap:wrap;gap:14px;align-items:center;color:#586857;font-size:12px;margin:20px 0 23px}
.cdl-legend>span{display:inline-flex;align-items:center;gap:7px}
.cdl-dot{display:inline-block;width:11px;height:11px;border-radius:4px}
.cdl-dot.open{background:#a7dac0}.cdl-dot.booked{background:#ecc9ca}.cdl-dot.closed{background:#efdcad}.cdl-dot.unknown{background:#dfe3df}
.cdl-unit-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}
.cdl-unit-tab{border:1px solid #d8e0d5;background:#fff;color:#283d2b;border-radius:15px;padding:18px 16px;text-align:start;transition:.2s;display:flex;flex-direction:column;gap:8px}
.cdl-unit-tab:hover{transform:translateY(-2px);border-color:#819b78}.cdl-unit-tab.active{border:2px solid var(--cdl-green);background:#eaf1e7;box-shadow:0 8px 26px #42563714}
.cdl-unit-tab strong{font-size:15px}.cdl-unit-tab small{font-size:11px;color:#6c7867}.cdl-unit-tab .cdl-unit-icon{font-size:20px;color:#b97c39}
.cdl-main{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:20px;align-items:start}
.cdl-calendar-shell,.cdl-book-shell{background:#fff;border:1px solid #e0e7dc;border-radius:20px;padding:22px;box-shadow:0 10px 32px #27392009}
.cdl-cal-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:22px}
.cdl-cal-head h3{font-size:25px;margin:0;text-align:center;color:#253329}.cdl-cal-nav{border:1px solid #dbe2d8;border-radius:50%;background:#fff;width:42px;height:42px;color:#354d35;font-size:21px;display:grid;place-items:center}
.cdl-cal-nav:hover{background:#eef3ea}.cdl-weekdays,.cdl-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.cdl-weekdays span{text-align:center;color:#849087;font-size:12px;font-weight:700;padding:10px 0}
.cdl-date{min-height:87px;background:#f2f4f1;border:1.5px solid transparent;border-radius:12px;text-align:center;padding:9px 2px;color:#263629;display:flex;flex-direction:column;align-items:center;gap:7px;justify-content:flex-start;transition:border-color .15s}
.cdl-date>strong{font-size:18px;line-height:1.2}.cdl-date small{font-size:10px;font-weight:700;white-space:nowrap}.cdl-date.open{background:#e2f2e9}.cdl-date.booked{background:#f6dedd;color:#8e4e52}.cdl-date.closed,.cdl-date.maintenance{background:#f7ebd6;color:#8b744b}.cdl-date.past,.cdl-date.unpublished{background:#f2f3f4;color:#a0aaa4}
.cdl-date[aria-disabled="true"]{cursor:not-allowed}.cdl-date:not([aria-disabled="true"]){cursor:pointer}.cdl-date.open:hover{border-color:#358e62}.cdl-date.selected{border:2px solid #238a56;box-shadow:inset 0 0 0 1px #238a56}.cdl-date.in-range{background:#c6e3d2}
.cdl-date.blank{visibility:hidden}.cdl-note{font-size:11px;color:#677568;line-height:1.8;margin:16px 0 0}
.cdl-book-shell h3{font-size:25px;margin:0 0 14px}.cdl-form-label{display:block;font-size:12px;font-weight:700;margin-bottom:7px;color:#405240}
.cdl-book-shell input,.cdl-book-shell select,.cdl-book-shell textarea{width:100%;border:1px solid #dce3d7;border-radius:9px;padding:12px;background:#fff;font-size:13px;min-width:0}
.cdl-book-shell input:focus,.cdl-book-shell select:focus,.cdl-book-shell textarea:focus{outline:2px solid #abc19a;outline-offset:1px}
.cdl-row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cdl-form-field{margin-bottom:13px}.cdl-muted{font-size:12px;color:#687667;line-height:1.7;margin:8px 0}
.cdl-summary{border:1px solid #e2e6dc;border-radius:13px;background:#fafbf8;padding:14px;margin:14px 0;font-size:13px;line-height:1.9}
.cdl-summary strong{color:#263d2e}.cdl-total{font-size:22px;color:#385335;font-weight:800}.cdl-sticky{position:sticky;top:110px}
.cdl-alert{padding:12px 14px;border-radius:11px;background:#fff5e9;border:1px solid #e8d5b8;color:#67512e;font-size:12px;line-height:1.8;margin:14px 0}
.cdl-alert.error{background:#fff1ef;border-color:#e8c8c5;color:#9a3434}.cdl-alert.ok{background:#edf7ee;border-color:#b7d7c0;color:#2b6a3b}
.cdl-loading{padding:30px;color:#53654c}.cdl-book-shell .btn{width:100%;border-radius:10px}.cdl-book-shell .btn:disabled{opacity:.55;cursor:not-allowed}
.cdl-compare{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-top:18px;font-size:13px}
.cdl-compare a{color:#385335;text-decoration:underline;text-underline-offset:4px}
.cdl-pill{font-size:10px;border:1px solid #d8e6d5;background:#fff;padding:4px 9px;border-radius:99px;color:#4b674b}
.cdl-quote-breakdown{display:flex;justify-content:space-between;gap:10px}.cdl-quote-breakdown span:last-child{font-weight:700}
@media(max-width:980px){.cdl-unit-tabs{grid-template-columns:1fr 1fr}.cdl-main{grid-template-columns:1fr}.cdl-sticky{position:static}}
@media(max-width:600px){.cdl-booking{padding:50px 0}.cdl-unit-tabs{gap:8px}.cdl-unit-tab{padding:12px 10px}.cdl-unit-tab strong{font-size:12px}.cdl-main{gap:12px}.cdl-calendar-shell,.cdl-book-shell{padding:15px}.cdl-weekdays,.cdl-days{gap:4px}.cdl-date{min-height:72px;padding:8px 1px;gap:5px;border-radius:9px}.cdl-date strong{font-size:15px}.cdl-date small{font-size:8.5px}.cdl-cal-head h3{font-size:18px}.cdl-cal-nav{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){.cdl-unit-tab,.cdl-date{transition:none}}
/* Instant checkout: expired/unpublished dates must never resemble clickable inventory. */
.cdl-date:disabled{cursor:not-allowed;opacity:.77}
.cdl-date:not(:disabled):focus-visible,.cdl-unit-tab:focus-visible{outline:3px solid #bb7a38;outline-offset:2px}
.cdl-book-shell .btn:disabled{background:#6b776c;border-color:#6b776c}

#cdl-accept{width:auto;flex:none}#cdl-terms{white-space:pre-line}.cdl-date:disabled{cursor:not-allowed}

@media(min-width:981px){.detailgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cdl-rule{border:1px solid #dce3d7;background:#fff;border-radius:14px;padding:15px 20px;align-self:start}
.cdl-rule summary{font-weight:700;color:#354e34;cursor:pointer}
.cdl-rule ul,.cdl-rule p{margin:12px 0 0;padding-inline-start:16px;line-height:1.75;font-size:14px}
.cdl-rule li+li{margin-top:8px}
.cdl-extras{border:1px solid #dce3d7;border-radius:12px;padding:12px;margin:12px 0}
.cdl-extras legend,.cdl-rule-link{font-weight:700;font-size:13px;color:#405240}
.cdl-extras input{margin-top:6px}.cdl-alert:empty{display:none}
