/* ==========================================================================
   Custom date picker — sitewide, pairs with js/date-picker.js. Self-contained
   stylesheet, same pattern as tour-reel.css/micro-doc-reel.css: reuses
   styles.css's design tokens via var(--hv-*) but doesn't modify that file.
   ========================================================================== */

.hv-datepicker { position: relative; }
.hv-datepicker input[readonly] { cursor: pointer; padding-right: 2.5rem; }

.hv-datepicker-icon {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--hv-teal);
  pointer-events: none;
}
.hv-datepicker-icon svg { width: 100%; height: 100%; }

.hv-datepicker-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: 300px;
  background: var(--hv-white);
  border: 1px solid var(--hv-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: var(--space-md);
}

.hv-dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.hv-dp-month {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--hv-deep);
}
.hv-dp-nav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--hv-line);
  background: var(--hv-cream);
  color: var(--hv-teal);
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.hv-dp-nav:hover { background: var(--hv-teal); border-color: var(--hv-teal); color: var(--hv-white); }
.hv-dp-nav:focus-visible { outline: 2px solid var(--hv-brass); outline-offset: 2px; }

.hv-dp-weekdays,
.hv-dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.hv-dp-weekdays span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hv-teal);
  padding-bottom: 0.4rem;
}
.hv-dp-cell { aspect-ratio: 1 / 1; }
.hv-dp-day {
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--hv-ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.hv-dp-day:hover:not(:disabled) { background: var(--hv-sand); }
.hv-dp-day:focus-visible { outline: 2px solid var(--hv-brass); outline-offset: 1px; }
.hv-dp-day.is-today { box-shadow: inset 0 0 0 1.5px var(--hv-brass); font-weight: 700; }
.hv-dp-day.is-selected { background: var(--hv-brass); color: var(--hv-white); font-weight: 700; }
.hv-dp-day.is-selected.is-today { box-shadow: none; }
.hv-dp-day:disabled { color: var(--hv-line); cursor: not-allowed; }

.hv-dp-footer {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--hv-line);
}
.hv-dp-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hv-brass-dark);
  cursor: pointer;
}
.hv-dp-link:hover { text-decoration: underline; }
.hv-dp-link:disabled { color: var(--hv-line); cursor: not-allowed; text-decoration: none; }
.hv-dp-clear { color: var(--hv-teal); }
