/* Terre de Sel — calendrier. Personnalisez les couleurs via ces variables dans votre thème. */
.tdsc {
    --tdsc-accent: #2f6f6a;
    --tdsc-accent-soft: #dcebe9;
    --tdsc-accent-soft: color-mix(in srgb, var(--tdsc-accent) 18%, white);
    --tdsc-booked: #ece7e1;
    --tdsc-booked-text: #a49a8f;
    --tdsc-text: #2b2b2b;
    --tdsc-radius: 8px;
    color: var(--tdsc-text);
    font-size: 15px;
    max-width: 760px;
    position: relative;
}
.tdsc-head { display: flex; justify-content: space-between; position: absolute; left: 0; right: 0; top: -4px; pointer-events: none; }
.tdsc-nav {
    pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #d6d0c8;
    background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--tdsc-text); padding: 0;
}
.tdsc-nav:disabled { opacity: .3; cursor: default; }
.tdsc-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.tdsc-month-title { text-align: center; font-weight: 600; text-transform: capitalize; line-height: 28px; margin-bottom: 10px; }
.tdsc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.tdsc-wd { text-align: center; font-size: 12px; opacity: .6; padding-bottom: 4px; }
.tdsc-day {
    aspect-ratio: 1 / 1.05; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: var(--tdsc-radius); border: 0; background: transparent; font: inherit; color: inherit; padding: 0; line-height: 1.1;
}
.tdsc-day small { font-size: 10.5px; opacity: .75; margin-top: 2px; }
button.tdsc-day { cursor: pointer; }
.tdsc-day.is-free { background: #fff; box-shadow: inset 0 0 0 1px #e4ded6; }
button.tdsc-day.is-free:hover { box-shadow: inset 0 0 0 2px var(--tdsc-accent); }
.tdsc-day.is-booked { background: var(--tdsc-booked); color: var(--tdsc-booked-text); text-decoration: line-through; }
/* jour de départ possible (nuit réservée mais la veille est libre) : moitié haute libre */
.tdsc-day.is-booked.is-checkout { background: linear-gradient(135deg, #fff 50%, var(--tdsc-booked) 50%); text-decoration: none; }
button.tdsc-day.is-checkout:hover { box-shadow: inset 0 0 0 2px var(--tdsc-accent); }
.tdsc-day.is-free.is-checkin { background: linear-gradient(135deg, var(--tdsc-booked) 50%, #fff 50%); }
.tdsc-day.is-past { opacity: .35; }
.tdsc-day.is-today { font-weight: 700; }
.tdsc-day.is-range { background: var(--tdsc-accent-soft); box-shadow: none; }
.tdsc-day.is-start, .tdsc-day.is-end { background: var(--tdsc-accent) !important; color: #fff !important; box-shadow: none; text-decoration: none; }
.tdsc-legend { display: flex; gap: 18px; font-size: 13px; margin: 14px 0 6px; opacity: .8; flex-wrap: wrap; }
.tdsc-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.tdsc-legend .lg-free { background: #fff; box-shadow: inset 0 0 0 1px #d6d0c8; }
.tdsc-legend .lg-booked { background: var(--tdsc-booked); }
.tdsc-summary { margin-top: 14px; padding: 16px 18px; border-radius: var(--tdsc-radius); background: #faf8f5; }
.tdsc-summary p { margin: 0 0 8px; }
.tdsc-msg { color: #a13d2d; }
.tdsc-prices { width: 100%; max-width: 360px; border-collapse: collapse; margin: 6px 0 14px; }
.tdsc-prices td { padding: 4px 0; border: 0; }
.tdsc-prices td:last-child { text-align: right; }
.tdsc-total td { font-weight: 700; border-top: 1px solid #ddd6cc; padding-top: 8px; }
.tdsc-cta {
    display: inline-block; background: var(--tdsc-accent); color: #fff !important; text-decoration: none;
    padding: 10px 18px; border-radius: var(--tdsc-radius); font-weight: 600;
}
.tdsc-reset { background: none; border: 0; text-decoration: underline; cursor: pointer; color: inherit; font: inherit; margin-left: 10px; }
.tdsc-error, .tdsc-loading { padding: 14px; background: #faf8f5; border-radius: var(--tdsc-radius); }
