/* ============================================================
   SANTO SUSHi — calendar.css
   ------------------------------------------------------------
   Calendario visual de selección de fecha (estilo Airbnb/Calendly):
   navegación mensual, días bloqueados/ocupados, día actual y día
   seleccionado con estados visuales claros. Sin librerías externas:
   el markup lo genera calendar.js con clases de este archivo.
   ============================================================ */

.ev-calendar {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #ece4d2;
  padding: 1.25rem;
  max-width: 100%;
}

.ev-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.ev-calendar-title {
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: capitalize;
  color: #1c1613;
}
.ev-calendar-nav {
  display: flex;
  gap: 0.5rem;
}
.ev-calendar-nav-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 2px solid #ece4d2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #55493c;
  transition: all 0.15s ease;
}
.ev-calendar-nav-btn:hover:not(:disabled) { border-color: var(--ev-gold); color: var(--ev-gold-dark); background: var(--ev-beige); }
.ev-calendar-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.ev-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #a89a7d;
  margin-bottom: 0.5rem;
}

.ev-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.ev-calendar-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1c1613;
  cursor: pointer;
  border: 2px solid transparent;
  background: transparent;
  transition: all 0.15s ease;
}
.ev-calendar-day.ev-day-empty { visibility: hidden; cursor: default; }

.ev-calendar-day:not(.ev-day-disabled):not(.ev-day-occupied):hover {
  background: var(--ev-beige);
  border-color: var(--ev-gold);
}

.ev-calendar-day.ev-day-today {
  border-color: var(--ev-gold-dark);
  font-weight: 800;
}

.ev-calendar-day.ev-day-selected {
  background: linear-gradient(135deg, var(--ev-gold) 0%, var(--ev-gold-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(169, 129, 47, 0.35);
  border-color: transparent;
}

.ev-calendar-day.ev-day-disabled {
  color: #d4cbb8;
  cursor: not-allowed;
  text-decoration: none;
}

.ev-calendar-day.ev-day-occupied {
  color: #c9c1ab;
  cursor: not-allowed;
  text-decoration: line-through;
  background: #f7f4ec;
}
.ev-calendar-day.ev-day-occupied::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #d64545;
}

.ev-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.1rem;
  font-size: 0.75rem;
  color: #8a7a5e;
  font-weight: 600;
}
.ev-calendar-legend span { display: flex; align-items: center; gap: 0.4rem; }
.ev-legend-dot { width: 0.65rem; height: 0.65rem; border-radius: 999px; display: inline-block; }
.ev-legend-dot.selected { background: linear-gradient(135deg, var(--ev-gold) 0%, var(--ev-gold-dark) 100%); }
.ev-legend-dot.occupied { background: #f7f4ec; border: 1.5px solid #d64545; }
.ev-legend-dot.disabled { background: #f3f0e8; border: 1.5px solid #d4cbb8; }

.ev-selected-date-display {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 0.9rem;
  background: var(--ev-beige);
  font-weight: 700;
  font-size: 0.9rem;
  color: #1c1613;
  display: none;
  align-items: center;
  gap: 0.6rem;
}
.ev-selected-date-display.show { display: flex; }
.ev-selected-date-display i { color: var(--ev-gold-dark); }

.ev-calendar-loading {
  text-align: center;
  padding: 2rem;
  color: #a89a7d;
  font-size: 0.85rem;
}
