/* datepicker.css — shared on-brand calendar popover (site + admin).
 * Light Heritage palette: ivory surfaces, maroon accents, dark ink text. */
.jm-dp {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23724845' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2.2rem !important;
}
.jm-dp-cap { font-size: 0.72rem; color: #6E6157; margin-top: 0.25rem; letter-spacing: 0.02em; }

.jm-dp-pop {
  position: fixed; z-index: 2147483000; width: 290px; box-sizing: border-box;
  background: linear-gradient(180deg, #FFFDF8, #F7F2E9);
  border: 1px solid rgba(114, 72, 69, 0.30); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(60, 30, 25, 0.28);
  padding: 0.7rem; font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2b1f1c; -webkit-font-smoothing: antialiased; user-select: none;
}
.jm-dp-pop * { box-sizing: border-box; }
.jm-dp-head { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; margin-bottom: 0.5rem; }
.jm-dp-nav {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(114, 72, 69, 0.25);
  background: #fff; color: #724845; font-size: 1.05rem; line-height: 1; cursor: pointer; transition: all 0.15s;
}
.jm-dp-nav:hover { background: rgba(114, 72, 69, 0.10); border-color: rgba(114, 72, 69, 0.45); }
.jm-dp-title {
  flex: 1; background: none; border: none; color: #5A3530; cursor: pointer;
  font-family: "Playfair Display", Georgia, serif; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.03em; padding: 0.3rem; border-radius: 8px; transition: background 0.15s;
}
.jm-dp-title:hover { background: rgba(114, 72, 69, 0.08); }
/* Table-based calendar — bullet-proof 7-column alignment */
.jm-dp-cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.jm-dp-cal th { text-align: center; font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #724845; padding: 0.25rem 0 0.35rem; }
.jm-dp-cal td { text-align: center; padding: 1px; }
.jm-dp-cal td.jm-dp-day { height: 34px; border-radius: 8px; font-size: 0.82rem; color: #2b1f1c; cursor: pointer; transition: background 0.12s, color 0.12s; }
.jm-dp-cal td.jm-dp-day.empty { cursor: default; }
.jm-dp-cal td.jm-dp-day:hover:not(.dis):not(.sel):not(.empty) { background: rgba(114, 72, 69, 0.12); }
.jm-dp-cal td.jm-dp-day.today { box-shadow: inset 0 0 0 1px rgba(114, 72, 69, 0.6); }
.jm-dp-cal td.jm-dp-day.cursor:not(.sel) { background: rgba(114, 72, 69, 0.08); }
.jm-dp-cal td.jm-dp-day.sel { background: linear-gradient(120deg, #724845, #5A3530); color: #fff; font-weight: 700; }
.jm-dp-cal td.jm-dp-day.dis { color: rgba(43, 31, 28, 0.28); cursor: not-allowed; }
.jm-dp-cal td.jm-dp-cell { height: 42px; border-radius: 8px; font-size: 0.82rem; color: #2b1f1c; cursor: pointer; transition: background 0.12s, color 0.12s; }
.jm-dp-cal td.jm-dp-cell:hover { background: rgba(114, 72, 69, 0.12); color: #5A3530; }
/* fully-booked date (5 confirmed) — visibly closed, not just greyed */
.jm-dp-cal td.jm-dp-day.full { color: #a8433a; background: rgba(176, 48, 48, 0.08); text-decoration: line-through; cursor: not-allowed; }

/* ---------- Time-slot drawer (JMTime) ---------- */
.jm-tp {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23724845' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7.5 12 12 15 13.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center; padding-right: 2.2rem !important;
}
.jm-tp-pop {
  width: 264px; max-width: calc(100vw - 16px);
  background: linear-gradient(180deg, #FFFDF8, #F7F2E9);
  border: 1px solid rgba(114, 72, 69, 0.30); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(60, 30, 25, 0.28); padding: 0.7rem;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2b1f1c; user-select: none;
}
.jm-tp-pop * { box-sizing: border-box; }
.jm-tp-h { font-family: "Playfair Display", Georgia, serif; font-size: 0.8rem; color: #5A3530; letter-spacing: 0.04em; margin: 0.1rem 0 0.6rem; text-align: center; font-weight: 600; }
.jm-tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-right: 4px; }
.jm-tp-grid::-webkit-scrollbar { width: 8px; }
.jm-tp-grid::-webkit-scrollbar-thumb { background: rgba(114, 72, 69, 0.30); border-radius: 20px; }
.jm-tp-grid::-webkit-scrollbar-track { background: transparent; }
.jm-tp-slot {
  padding: 0.55rem 0.3rem; border: 1px solid rgba(114, 72, 69, 0.22); background: #fff;
  color: #2b1f1c; border-radius: 8px; font-size: 0.82rem; cursor: pointer; transition: all 0.12s; text-align: center;
}
.jm-tp-slot:hover:not(.taken):not(.sel) { background: rgba(114, 72, 69, 0.10); border-color: rgba(114, 72, 69, 0.45); }
.jm-tp-slot.sel { background: linear-gradient(120deg, #724845, #5A3530); color: #fff; font-weight: 700; border-color: transparent; }
.jm-tp-slot.taken { color: rgba(43, 31, 28, 0.32); text-decoration: line-through; cursor: not-allowed; border-color: rgba(114, 72, 69, 0.10); background: transparent; }
.jm-dp-foot { display: flex; justify-content: space-between; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid rgba(114, 72, 69, 0.15); }
.jm-dp-jump, .jm-dp-clear { background: none; border: none; color: #724845; cursor: pointer; font-size: 0.74rem; letter-spacing: 0.04em; padding: 0.25rem 0.4rem; border-radius: 6px; font-weight: 500; }
.jm-dp-jump:hover, .jm-dp-clear:hover { background: rgba(114, 72, 69, 0.10); }
.jm-dp-clear { color: #6E6157; }
