/* ============================================================
   CALENDRIER DE RÉSERVATION — Location Robot
   Design: Premium Compact | Inter + Poppins
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --res-primary:      #1d4ed8;
  --res-primary-dark: #1e40af;
  --res-primary-glow: rgba(29,78,216,0.10);
  --res-accent:       #f97316;

  --res-bg:           #ffffff;
  --res-surface:      #f8fafc;
  --res-surface-2:    #f1f5f9;
  --res-border:       #e2e8f0;
  --res-border-focus: #1d4ed8;

  --res-text:         #0f172a;
  --res-text-2:       #475569;
  --res-text-3:       #94a3b8;

  --res-pending-bg:   #fef9c3;
  --res-pending:      #92400e;
  --res-pending-bd:   #fbbf24;

  --res-reserved-bg:  #fee2e2;
  --res-reserved:     #991b1b;
  --res-reserved-bd:  #f87171;

  --res-manual-bg:    #1e293b;
  --res-manual:       #f8fafc;
  --res-manual-bd:    #334155;

  --res-selected-bg:  #1d4ed8;
  --res-selected:     #ffffff;

  --res-past-bg:      #f8fafc;
  --res-past:         #cbd5e1;

  --res-today-ring:   #f97316;

  --res-radius:       14px;
  --res-radius-sm:    8px;
  --res-radius-xs:    6px;
  --res-shadow:       0 2px 16px rgba(15,23,42,0.07);
  --res-shadow-lg:    0 6px 32px rgba(15,23,42,0.10);
  --res-transition:   140ms ease;
}

/* ── Wrapper module — décalé du texte au-dessus ─────────────── */
.reservation-module {
  background: var(--res-bg);
  border: 1px solid var(--res-border);
  border-radius: var(--res-radius);
  box-shadow: var(--res-shadow-lg);
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin-top: 32px;
  max-width: 960px; /* plus grand */
  margin-left: auto;
  margin-right: auto;
}

/* ── Grid layout ────────────────────────────────────────────── */
.reservation-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .reservation-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

/* ── Cards ──────────────────────────────────────────────────── */
.reservation-card {
  padding: 24px 26px;
}

.reservation-card + .reservation-card {
  border-top: 1px solid var(--res-border);
}

@media (min-width: 1024px) {
  .reservation-card + .reservation-card {
    border-top: none;
    border-left: 1px solid var(--res-border);
  }
}

.reservation-card h3 {
  margin: 0 0 3px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--res-text);
  letter-spacing: -0.01em;
}

.reservation-card > p {
  margin: 0 0 14px;
  color: var(--res-text-3);
  font-size: 0.78rem;
  line-height: 1.5;
}

.reservation-info-panel {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--res-radius-sm);
}

.reservation-info-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--res-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reservation-info-list {
  margin: 0;
  padding-left: 18px;
  color: var(--res-text-2);
  font-size: 0.82rem;
  line-height: 1.6;
}

.reservation-info-list li + li {
  margin-top: 6px;
}

/* ── Calendar header ────────────────────────────────────────── */
.reservation-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--res-surface);
  border: 1px solid var(--res-border);
  border-radius: var(--res-radius-sm);
}

.reservation-calendar-header button {
  border: 1px solid var(--res-border);
  background: var(--res-bg);
  color: var(--res-text-2);
  border-radius: var(--res-radius-xs);
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--res-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reservation-calendar-header button:hover {
  background: var(--res-primary);
  color: #fff;
  border-color: var(--res-primary);
}

.reservation-calendar-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--res-text);
  text-align: center;
  flex: 1;
  text-transform: capitalize;
}

/* ── Calendar grid ──────────────────────────────────────────── */
.reservation-calendar-weekdays,
.reservation-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.reservation-calendar-weekdays div {
  text-align: center;
  font-size: 0.6rem;
  color: var(--res-text-3);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 0 3px;
}

/* ── Calendar days ──────────────────────────────────────────── */
.reservation-calendar-day {
  aspect-ratio: 1;
  border-radius: 5px;
  border: 1.5px solid var(--res-border);
  background: var(--res-surface);
  color: var(--res-text);
  font-size: 0.8rem;  /* plus grand */
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--res-transition);
  position: relative;
  font-family: 'Inter', sans-serif;
  padding: 0;
  line-height: 1;
}

/* Available hover */
.reservation-calendar-day:not(.is-empty):not(.is-past):not(.is-pending):not(.is-reserved):not(.is-manual):not(.is-selected):hover {
  background: var(--res-primary-glow);
  border-color: var(--res-primary);
  color: var(--res-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(29,78,216,0.12);
}

.reservation-calendar-day.is-empty {
  border-color: transparent;
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.reservation-calendar-day.is-past {
  background: var(--res-past-bg);
  border-color: transparent;
  color: var(--res-past);
  cursor: not-allowed;
  opacity: 0.55;
}

.reservation-calendar-day.is-pending {
  background: var(--res-pending-bg);
  border-color: var(--res-pending-bd);
  color: var(--res-pending);
  cursor: not-allowed;
  font-weight: 600;
}

.reservation-calendar-day.is-reserved {
  background: var(--res-reserved-bg);
  border-color: var(--res-reserved-bd);
  color: var(--res-reserved);
  cursor: not-allowed;
  font-weight: 600;
}

.reservation-calendar-day.is-manual {
  background: var(--res-manual-bg);
  border-color: var(--res-manual-bd);
  color: var(--res-manual);
  cursor: not-allowed;
  font-weight: 600;
}

.reservation-calendar-day.is-selected {
  background: var(--res-selected-bg);
  border-color: var(--res-selected-bg);
  color: var(--res-selected);
  font-weight: 700;
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(29,78,216,0.30);
  z-index: 1;
}

/* Aujourd'hui — visible mais non sélectionnable */
.reservation-calendar-day.is-today-blocked {
  background: #fff7ed;
  border: 2px solid var(--res-today-ring);
  color: #9a3412;
  font-weight: 700;
  cursor: not-allowed;
  opacity: 0.75;
  position: relative;
}

.reservation-calendar-day.is-today-blocked::after {
  content: 'auj.';
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.42rem;
  font-weight: 600;
  color: var(--res-today-ring);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

/* ── Range selection ────────────────────────────────────────── */

/* Date de début + fin (même couleur bleu foncé) */
.reservation-calendar-day.is-range-start,
.reservation-calendar-day.is-range-end {
  background: var(--res-selected-bg);
  border-color: var(--res-selected-bg);
  color: var(--res-selected);
  font-weight: 700;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(29,78,216,0.28);
}

/* Date de début */
.reservation-calendar-day.is-range-start {
  border-radius: 6px 0 0 6px;
}

/* Date de fin */
.reservation-calendar-day.is-range-end {
  border-radius: 0 6px 6px 0;
}

/* Même jour début et fin */
.reservation-calendar-day.is-range-start.is-range-end {
  border-radius: 6px;
}

/* Jours dans la plage */
.reservation-calendar-day.is-in-range {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1e40af;
  border-radius: 0;
  font-weight: 500;
  cursor: default;
}

/* Aperçu hover de la fin potentielle */
.reservation-calendar-day.is-hover-end {
  background: #e0f2fe;
  border-color: #7dd3fc;
  border-style: dashed;
  color: #0369a1;
  font-weight: 600;
  border-radius: 0 6px 6px 0;
}

/* ── Hint de guidage ────────────────────────────────────────── */
.cal-hint {
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--res-text-3);
  text-align: center;
  padding: 4px 0;
  transition: color 200ms ease;
}

.cal-hint--active {
  color: var(--res-primary);
  font-weight: 600;
}

.cal-hint--done {
  color: #16a34a;
  font-weight: 600;
}

/* ── Legend ─────────────────────────────────────────────────── */
.reservation-legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--res-border);
}

.reservation-legend span {
  font-size: 0.65rem;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid transparent;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reservation-legend span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-available {
  background: var(--res-surface);
  border-color: var(--res-border);
  color: var(--res-text-2);
}
.legend-available::before { background: var(--res-surface-2); border: 1px solid var(--res-border); }

.legend-today {
  background: #fff7ed;
  border-color: var(--res-today-ring);
  color: #9a3412;
}
.legend-today::before { background: var(--res-today-ring); border-radius: 50%; }

.legend-pending {
  background: var(--res-pending-bg);
  border-color: var(--res-pending-bd);
  color: var(--res-pending);
}
.legend-pending::before { background: var(--res-pending-bd); }

.legend-reserved {
  background: var(--res-reserved-bg);
  border-color: var(--res-reserved-bd);
  color: var(--res-reserved);
}
.legend-reserved::before { background: var(--res-reserved-bd); }

.legend-manual {
  background: var(--res-manual-bg);
  border-color: var(--res-manual-bd);
  color: var(--res-manual);
}
.legend-manual::before { background: var(--res-manual-bd); }

/* ── How-to box ────────────────────────────────────────────── */
.reservation-howto {
  margin-top: 14px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--res-radius-sm);
}

.reservation-howto-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--res-primary);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.reservation-howto-title svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.reservation-howto ol {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: decimal;
}

.reservation-howto li {
  font-size: 0.68rem;
  color: var(--res-text-2);
  line-height: 1.6;
  padding: 1px 0;
}

.reservation-howto li strong {
  color: var(--res-text);
  font-weight: 600;
}

.reservation-howto-note {
  margin-top: 6px;
  font-size: 0.62rem;
  color: var(--res-text-3);
  font-style: italic;
  line-height: 1.5;
}

/* ── Form ───────────────────────────────────────────────────── */
.reservation-period-card {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1.5px solid #bfdbfe;
  border-radius: var(--res-radius-sm);
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 52%, #f0fdf4 100%);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.06);
}

.reservation-period-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.reservation-period-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--res-text);
  line-height: 1.2;
}

.reservation-period-note {
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--res-text-3);
  line-height: 1.55;
}

.reservation-period-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #dbeafe;
  background: rgba(255,255,255,0.72);
  color: var(--res-text-2);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.reservation-period-badge.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.reservation-period-badge.is-complete {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.reservation-price-card {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #dbe7f4;
  border-radius: var(--res-radius-sm);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 60%, #eff6ff 100%);
}

.reservation-price-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.reservation-price-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--res-text);
  line-height: 1.2;
}

.reservation-price-note {
  margin: 4px 0 0;
  color: var(--res-text-3);
  font-size: 0.72rem;
  line-height: 1.55;
}

.reservation-price-total {
  min-width: 110px;
  text-align: right;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--res-primary-dark);
}

.reservation-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reservation-price-item {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--res-radius-xs);
  background: rgba(255, 255, 255, 0.88);
}

.reservation-price-label {
  display: block;
  margin-bottom: 4px;
  color: var(--res-text-3);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reservation-price-value {
  display: block;
  color: var(--res-text);
  font-size: 0.86rem;
  font-weight: 700;
}

.reservation-period-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reservation-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .reservation-form-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.reservation-form-group label {
  display: block;
  margin-bottom: 3px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--res-text-2);
  letter-spacing: 0.01em;
}

.reservation-form-group--compact {
  margin-bottom: 0;
}

.reservation-form-group--full {
  grid-column: 1 / -1;
}

.reservation-form-group--message {
  margin-top: 14px;
}

.reservation-form-group input,
.reservation-form-group textarea,
.reservation-form-group select {
  width: 100%;
  border: 1.5px solid var(--res-border);
  border-radius: var(--res-radius-xs);
  padding: 7px 10px;
  background: var(--res-bg);
  color: var(--res-text);
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  transition: border-color var(--res-transition), box-shadow var(--res-transition);
  outline: none;
  line-height: 1.5;
}

.reservation-form-group input:focus,
.reservation-form-group textarea:focus,
.reservation-form-group select:focus {
  border-color: var(--res-border-focus);
  box-shadow: 0 0 0 3px var(--res-primary-glow);
}

.reservation-form-group input::placeholder,
.reservation-form-group textarea::placeholder {
  color: var(--res-text-3);
}

.reservation-form-group textarea {
  min-height: 64px;
  resize: vertical;
}

.reservation-form-group .error {
  margin-top: 3px;
  color: #b91c1c;
  font-size: 0.72rem;
  font-weight: 500;
}

.reservation-terms-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--res-surface);
  border: 1px solid var(--res-border);
  border-radius: var(--res-radius-sm);
}

.reservation-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--res-text);
  font-size: 0.86rem;
  line-height: 1.5;
  cursor: pointer;
}

.reservation-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--res-primary);
  flex-shrink: 0;
}

.reservation-checkbox a {
  color: var(--res-primary);
  font-weight: 600;
  text-decoration: underline;
}

.reservation-terms-note {
  margin: 10px 0 0;
  color: var(--res-text-2);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* ── Date Preview Box — design premium ──────────────────────── */
.res-date-preview {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--res-radius-sm);
  padding: 8px 12px;
  display: flex;
  gap: 0;
  flex-direction: column;
}

.res-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 3px 0;
}

.res-date-row + .res-date-row {
  border-top: 1px dashed #bfdbfe;
  margin-top: 3px;
  padding-top: 6px;
}

.res-date-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--res-primary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  min-width: 36px;
  flex-shrink: 0;
}

.res-date-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--res-text);
  font-variant-numeric: tabular-nums;
  min-width: 0;
  margin-left: auto;
  text-align: right;
  overflow-wrap: anywhere;
}

.res-date-value.is-empty {
  color: var(--res-text-3);
  font-weight: 400;
}

/* Waiting for end-date click — pulsing indicator */
.res-date-value.is-waiting {
  color: var(--res-primary);
  font-weight: 500;
  font-size: 0.72rem;
  animation: res-pulse 1.8s ease-in-out infinite;
}

@keyframes res-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* Hover preview — shows potential end date */
.res-date-value.is-hover-preview {
  color: #0369a1;
  font-weight: 600;
  font-style: italic;
}

/* Hover preview — blocked range */
.res-date-value.is-hover-blocked {
  color: #b91c1c;
  font-weight: 500;
  font-size: 0.72rem;
  font-style: italic;
}

/* ── Feedback messages ──────────────────────────────────────── */
.reservation-feedback {
  margin-top: 10px;
  border-radius: var(--res-radius-xs);
  padding: 9px 12px;
  font-size: 0.82rem;
  display: none;
  line-height: 1.5;
  font-weight: 500;
}

.reservation-feedback.is-visible { display: block; }

.reservation-feedback.is-success {
  background: #dcfce7;
  border: 1.5px solid #22c55e;
  color: #166534;
}

.reservation-feedback.is-info {
  background: #dbeafe;
  border: 1.5px solid #60a5fa;
  color: #1d4ed8;
}

.reservation-feedback.is-error {
  background: #fee2e2;
  border: 1.5px solid #f87171;
  color: #991b1b;
}

/* ── Submit button ──────────────────────────────────────────── */
.reservation-submit-btn {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--res-primary) 0%, #3b82f6 100%);
  color: #ffffff;
  border-radius: var(--res-radius-xs);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 200ms ease;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(29,78,216,0.22);
}

.reservation-submit-btn--spaced {
  margin-top: 16px;
}

.reservation-submit-btn:hover {
  background: linear-gradient(135deg, var(--res-primary-dark) 0%, var(--res-primary) 100%);
  box-shadow: 0 4px 14px rgba(29,78,216,0.30);
  transform: translateY(-1px);
}

.reservation-submit-btn:active {
  transform: translateY(0);
}

.reservation-submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .reservation-period-header,
  .reservation-period-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .reservation-period-header {
    gap: 8px;
  }
  .reservation-period-badge {
    justify-self: start;
  }
  .reservation-price-card-header,
  .reservation-price-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
  .reservation-price-total {
    min-width: 0;
    text-align: left;
  }
  .reservation-card {
    padding: 16px 14px;
  }
  .reservation-calendar-header {
    padding: 8px 10px;
    gap: 6px;
  }
  .reservation-calendar-title {
    min-width: 0;
    font-size: 0.78rem;
  }
  .reservation-calendar-day {
    font-size: 0.65rem;
  }
  .reservation-form-group--full {
    grid-column: auto;
  }
  .res-date-row {
    align-items: flex-start;
  }
  .res-date-label {
    min-width: 100%;
  }
  .res-date-value {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
  .reservation-module {
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reservation-calendar-day,
  .reservation-submit-btn,
  .reservation-calendar-header button {
    transition: none;
    transform: none !important;
  }
}

/* ============================================================
   FLATPICKR OVERRIDES (nouvelle techno calendrier)
   ============================================================ */
.reservation-flatpickr-host {
  margin-top: 4px;
  display: block !important;
  width: 100%;
}

.reservation-flatpickr-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.reservation-flatpickr-host .flatpickr-calendar {
  position: static;
  display: block;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.reservation-flatpickr-host .flatpickr-rContainer,
.reservation-flatpickr-host .flatpickr-weekdays,
.reservation-flatpickr-host .flatpickr-weekdaycontainer,
.reservation-flatpickr-host .flatpickr-days,
.reservation-flatpickr-host .dayContainer {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}

.reservation-flatpickr-host .flatpickr-months {
  display: none;
}

.reservation-flatpickr-host .flatpickr-weekdays {
  background: transparent;
}

.reservation-flatpickr-host .flatpickr-weekdaycontainer {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.reservation-flatpickr-host .flatpickr-weekday {
  width: auto;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 3px;
  color: var(--res-text-3);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reservation-flatpickr-host .dayContainer {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.reservation-flatpickr-host .flatpickr-day {
  width: 100%;
  max-width: none;
  flex: 0 0 auto;
  height: 38px;
  line-height: 38px;
  border-radius: 6px;
  border: 1.5px solid var(--res-border);
  background: var(--res-surface);
  color: var(--res-text);
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0;
}

.reservation-flatpickr-host .flatpickr-day.prevMonthDay,
.reservation-flatpickr-host .flatpickr-day.nextMonthDay {
  visibility: hidden;
  pointer-events: none;
}

.reservation-flatpickr-host .flatpickr-day.flatpickr-disabled,
.reservation-flatpickr-host .flatpickr-day.flatpickr-disabled:hover {
  cursor: not-allowed;
  opacity: 0.95;
}

.reservation-flatpickr-host .flatpickr-day:not(.flatpickr-disabled):hover {
  background: var(--res-primary-glow);
  border-color: var(--res-primary);
  color: var(--res-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.12);
}

.reservation-flatpickr-host .flatpickr-day.selected,
.reservation-flatpickr-host .flatpickr-day.startRange,
.reservation-flatpickr-host .flatpickr-day.endRange {
  background: var(--res-selected-bg);
  border-color: var(--res-selected-bg);
  color: var(--res-selected);
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(29, 78, 216, 0.30);
}

.reservation-flatpickr-host .flatpickr-day.inRange {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1e40af;
  box-shadow: none;
}

.reservation-flatpickr-host .flatpickr-day.is-pending {
  background: var(--res-pending-bg);
  border-color: var(--res-pending-bd);
  color: var(--res-pending);
}

.reservation-flatpickr-host .flatpickr-day.is-reserved {
  background: var(--res-reserved-bg);
  border-color: var(--res-reserved-bd);
  color: var(--res-reserved);
}

.reservation-flatpickr-host .flatpickr-day.is-manual {
  background: var(--res-manual-bg);
  border-color: var(--res-manual-bd);
  color: var(--res-manual);
}

.reservation-flatpickr-host .flatpickr-day.is-today-blocked {
  background: #fff7ed;
  border: 2px solid var(--res-today-ring);
  color: #9a3412;
  font-weight: 700;
}
