/* Variáveis próprias do calendário: ele fica igual no site e no painel admin */
.dp-pop, .dp-backdrop, .dp-wrap {
  --bg-card:#181A20; --ink:#E8E1D5; --ink-dim:#A0A5B5; --ink-faint:#6B7280;
  --line:rgba(197,163,119,.16); --line-soft:rgba(255,255,255,.08);
  --gold:#C5A377; --gold-lt:#DBC19D; --gold-dk:#8B7355;
  --r-sm:.625rem; --r-md:1rem;
  --sans:'Plus Jakarta Sans', system-ui, sans-serif;
  --ease-luxury:cubic-bezier(.16,1,.3,1);
}

/* ═══════════════════════════════════════════════════════
   DatePicker — calendário de check-in / check-out
═══════════════════════════════════════════════════════ */
.dp-wrap { position: relative; display: block; width: 100%; min-width: 0; }
.dp-wrap input.dp-display { width: 100%; cursor: pointer; padding-right: 2.5rem !important; text-overflow: ellipsis; caret-color: transparent; }
.dp-wrap input.dp-display.dp-open { border-color: var(--gold); }
.dp-icon { position: absolute; right: .8rem; top: 50%; width: 1.05rem; height: 1.05rem; transform: translateY(-50%); color: var(--gold); pointer-events: none; }

.dp-backdrop { position: fixed; inset: 0; z-index: 1200; background: rgba(8,9,12,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; pointer-events: none; touch-action: none; transition: opacity .25s ease; }
.dp-backdrop.open { opacity: 1; pointer-events: all; }

.dp-pop { position: fixed; top: 0; left: 0; z-index: 1201; max-width: calc(100vw - 16px); padding: 1rem 1.1rem .85rem; background: var(--bg-card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 24px 60px -12px rgba(0,0,0,.85); font-family: var(--sans); opacity: 0; visibility: hidden; transform: translateY(6px) scale(.985); transition: opacity .18s ease, transform .22s var(--ease-luxury), visibility 0s linear .22s; }
.dp-pop.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.dp-handle { display: none; width: 2.5rem; height: .25rem; margin: 0 auto .75rem; border-radius: 999px; background: rgba(255,255,255,.18); }
.dp-top { display: flex; align-items: stretch; gap: .6rem; margin-bottom: .9rem; }
.dp-tabs { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; min-width: 0; }
.dp-tab { text-align: left; padding: .55rem .75rem; border-radius: var(--r-sm); border: 1px solid var(--line-soft); background: rgba(255,255,255,.03); color: var(--ink); font-family: var(--sans); cursor: pointer; transition: border-color .2s, background .2s; min-width: 0; }
.dp-tab span { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.dp-tab strong { display: block; margin-top: .1rem; font-size: .86rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-tab strong.is-empty { color: var(--ink-faint); font-weight: 500; }
.dp-tab.active { border-color: var(--gold); background: rgba(197,163,119,.09); }
.dp-tab[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.dp-x { display: none; width: 2.75rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 1px solid var(--line-soft); background: transparent; color: var(--ink-dim); cursor: pointer; }
.dp-x svg { width: 1.05rem; height: 1.05rem; }

.dp-months { display: flex; justify-content: center; gap: 1.6rem; }
.dp-month { width: calc(7 * 2.25rem); }
.dp-cap { position: relative; display: flex; align-items: center; justify-content: space-between; height: 2.25rem; margin-bottom: .3rem; }
.dp-cap-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 600; letter-spacing: .01em; pointer-events: none; }
.dp-nav, .dp-nav-sp { width: 2.25rem; height: 2.25rem; flex-shrink: 0; }
.dp-nav { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: .6rem; background: transparent; color: var(--ink-dim); cursor: pointer; transition: background .15s, color .15s; }
.dp-nav svg { width: 1rem; height: 1rem; }
.dp-nav:hover:not(:disabled) { background: rgba(255,255,255,.07); color: var(--ink); }
.dp-nav:disabled { opacity: .25; cursor: default; }
.dp-nav:focus-visible, .dp-tab:focus-visible, .dp-x:focus-visible, .dp-clear:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.dp-wd { height: 2rem; display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 600; letter-spacing: .03em; color: var(--ink-faint); }
.dp-day { position: relative; width: 100%; height: 2.25rem; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: .55rem; background: transparent; color: var(--ink); font-family: var(--sans); font-size: .82rem; cursor: pointer; transition: background .12s, color .12s; }
.dp-day:hover:not(.is-disabled):not(.is-start):not(.is-end) { background: rgba(255,255,255,.09); }
.dp-day:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; z-index: 1; }
.dp-day.is-today::after { content: ''; position: absolute; bottom: .28rem; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: var(--gold); }
.dp-day.is-mid { border-radius: 0; background: rgba(197,163,119,.17); }
.dp-day.is-mid:hover { background: rgba(197,163,119,.26); }
.dp-day.is-start, .dp-day.is-end { background: linear-gradient(135deg, var(--gold-lt), var(--gold) 55%, var(--gold-dk)); color: #111; font-weight: 700; }
.dp-day.is-start:not(.is-end) { border-radius: .55rem 0 0 .55rem; }
.dp-day.is-end:not(.is-start) { border-radius: 0 .55rem .55rem 0; }
.dp-day.is-start.is-today::after, .dp-day.is-end.is-today::after { background: #111; }
.dp-day.is-preview { background: rgba(197,163,119,.11); }
.dp-day.is-end.is-preview { background: rgba(197,163,119,.42); color: var(--ink); }
.dp-day.is-disabled { color: rgba(232,225,213,.28); text-decoration: line-through; cursor: not-allowed; }
.dp-day.is-disabled:hover { background: transparent; }

.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .85rem; padding-top: .75rem; border-top: 1px solid var(--line-soft); }
.dp-hint { font-size: .76rem; color: var(--ink-dim); }
.dp-hint strong { color: var(--gold); font-weight: 700; }
.dp-clear { padding: .3rem .2rem; border: 0; background: none; color: var(--ink-dim); font-family: var(--sans); font-size: .76rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.dp-clear:hover { color: var(--ink); }

/* celular / janela baixa: painel inferior com 1 mês, alvos de toque maiores */
.dp-pop.is-sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; max-height: 92vh; overflow-y: auto; padding: .65rem 1rem calc(1rem + env(safe-area-inset-bottom)); border-bottom: 0; border-radius: 1.4rem 1.4rem 0 0; transform: translateY(100%); }
.dp-pop.is-sheet.open { transform: none; }
.is-sheet .dp-handle { display: block; }
.is-sheet .dp-x { display: inline-flex; }
.is-sheet .dp-month { width: 100%; }
.is-sheet .dp-cap { height: 2.75rem; }
.is-sheet .dp-nav, .is-sheet .dp-nav-sp { width: 2.75rem; height: 2.75rem; }
.is-sheet .dp-cap-label { font-size: 1rem; }
.is-sheet .dp-wd { height: 2.2rem; font-size: .72rem; }
.is-sheet .dp-day { height: 2.75rem; font-size: .95rem; }
.is-sheet .dp-day.is-today::after { bottom: .4rem; }
.is-sheet .dp-hint { font-size: .82rem; }
.is-sheet .dp-clear { font-size: .82rem; padding: .5rem .3rem; }

/* ── Animações (mesmas ideias do componente de referência) ── */
.dp-day { transition: background-color .15s, color .15s, border-radius .15s, box-shadow .15s, transform .15s var(--ease-luxury); }
.dp-day.is-today::after { transition: background-color .15s; }
.dp-day:active:not(.is-disabled) { transform: scale(.92); }
.dp-day.is-start, .dp-day.is-end { animation: dp-select .26s var(--ease-luxury); box-shadow: 0 4px 14px -4px rgba(197,163,119,.55); }
.dp-day.is-mid { animation: dp-fade .2s ease; }
.dp-pop.open .dp-month { animation: dp-month-in .3s var(--ease-luxury) both; }
.dp-pop.open .dp-months[data-slide="next"] .dp-month { animation: dp-slide-next .28s var(--ease-luxury) both; }
.dp-pop.open .dp-months[data-slide="prev"] .dp-month { animation: dp-slide-prev .28s var(--ease-luxury) both; }
.dp-nav { transition: background .15s, color .15s, transform .15s var(--ease-luxury); }
.dp-nav:active:not(:disabled) { transform: scale(.88); }
.dp-hint strong { display: inline-block; animation: dp-fade .25s ease; }
@keyframes dp-select { 0% { transform: scale(.7); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes dp-fade { from { opacity: .3; } to { opacity: 1; } }
@keyframes dp-month-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes dp-slide-next { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes dp-slide-prev { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
/* Movimento reduzido (Windows com "efeitos de animação" desligado, iOS "Reduzir movimento"):
   mantém só fades curtos — sem deslizar, sem escala — para o calendário continuar com vida. */
@media (prefers-reduced-motion: reduce) {
  .dp-pop { transform: none !important; transition: opacity .18s ease, visibility 0s linear .18s !important; }
  .dp-pop.open { transition-delay: 0s !important; }
  .dp-pop.is-sheet { transform: none !important; }
  .dp-pop.open .dp-month,
  .dp-pop.open .dp-months[data-slide="next"] .dp-month,
  .dp-pop.open .dp-months[data-slide="prev"] .dp-month { animation: dp-fade .25s ease both !important; }
  .dp-day.is-start, .dp-day.is-end { animation: dp-fade .25s ease !important; }
  .dp-day, .dp-nav { transform: none !important; }
}
