/* Modal */
.modal-content {
  background-color: #fdfaf6;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: #000000;
  padding: 3.2rem;
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
  max-height: 95vh;
  overflow-y: auto;
}

.modal-header {
  border-bottom: 1px solid #e0e0e0;
  width: 100%;
}

.modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #00d4ff;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.modal-body {
  margin-top: -80px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  min-height: auto;
}

.modal-body-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 992px) {
  .modal-body-content {
    align-items: center;
  }
  .modal-body {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

.modal-body .card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #000000;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

.modal-body .room-info-icons {
  display: flex;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 15px 20px;
  row-gap: 20px;
  justify-content: center;
  margin-bottom: 15px;
}

.modal-body .room-info-icons span {
  background: none;
  border: none;
  padding: 0;
  font-size: 1rem;
  color: #333333;
}

.modal-body .room-info-icons i {
  margin-right: 8px;
  color: #00d4ff;
}

.modal-body .timeline {
  width: 100%;
  padding: 30px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.modal-body .month {
  min-width: 50px;
  height: 15px;
  margin: 0 3px;
}

.modal-body .month::before {
  font-size: 0.85rem;
  top: -25px;
}

.modal-body .date-picker-container {
  background-color: transparent;
  border-radius: 8px;
  padding: 15px;
  width: 100%;
  margin-top: -20px;
}

.modal-body .calendar-wrapper {
  max-width: 178px !important;
  margin: 0 auto !important;
  transform: scale(0.75) !important;
  transform-origin: top center !important;
  display: block !important;
  visibility: visible !important;
  overflow-x: auto;
  min-width: 178px;
}

@media (min-width: 992px) {
  .modal-body .calendar-wrapper,
  .modal-body .date-picker-container .calendar-wrapper .flatpickr-calendar {
    transform: none !important;
  }

  .modal-body .calendar-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  #fullscreenModal .close-btn {
    top: 20px;
    right: 20px;
  }
}

.modal-body .date-picker-container .calendar-wrapper .flatpickr-calendar {
  background: transparent !important;
  width: 100% !important;
  max-width: 178px !important;
  min-width: 178px;
  margin: 0 auto !important;
  padding: 0 !important;
  transform: scale(0.75) !important;
  transform-origin: top center !important;
  display: block !important;
  visibility: visible !important;
}

.modal-body .flatpickr-month {
  margin-bottom: 2px !important;
  display: flex !important;
  justify-content: flex-start !important;
  padding-left: 26px !important;
}

.modal-body .flatpickr-monthDropdown-months,
.modal-body .flatpickr-year {
  font-size: 0.75rem !important;
}

.modal-body .flatpickr-weekdays {
  font-size: 0.65rem !important;
  color: #333333 !important;
  margin-bottom: 2px !important;
}

.modal-body .flatpickr-weekday {
  font-weight: 500 !important;
  display: block !important;
}

.modal-body .flatpickr-day {
  width: 22px !important;
  height: 22px !important;
  line-height: 22px !important;
  margin: 1px !important;
  font-size: 0.7rem !important;
}

.modal-body .flatpickr-day.selected,
.modal-body .flatpickr-day.startRange,
.modal-body .flatpickr-day.endRange {
  background: #ffffff !important;
  border: 2px solid #00d4ff !important;
  color: #000000 !important;
}

.modal-body .flatpickr-day.inRange {
  background: rgba(0, 212, 255, 0.1) !important;
}

.modal-body .flatpickr-day.today {
  border: 1px solid #00d4ff !important;
}

.modal-body .flatpickr-day.occupied {
  background: #ff4d4d !important;
  border: 1px solid #ff4d4d !important;
  color: #ffffff !important;
}

.modal-body .flatpickr-day.occupied:hover {
  background: #e60000 !important;
  border: 1px solid #e60000 !important;
}

.modal-body .flatpickr-prev-month,
.modal-body .flatpickr-next-month {
  width: 24px !important;
  height: 24px !important;
  top: 8px !important;
  background-color: #00d4ff !important;
  border: 1px solid #00b7e6 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 0.8 !important;
  transition: opacity 0.3s ease, background-color 0.3s ease !important;
}

.modal-body .flatpickr-prev-month:hover,
.modal-body .flatpickr-next-month:hover {
  opacity: 1 !important;
  background-color: #00b7e6 !important;
}

.modal-body .flatpickr-prev-month {
  left: 2px !important;
}
.modal-body .flatpickr-next-month {
  right: 2px !important;
}

.modal-body .flatpickr-prev-month svg,
.modal-body .flatpickr-next-month svg {
  display: none !important;
}

.modal-body .flatpickr-prev-month::before {
  content: '<' !important;
  font-size: 14px !important;
  color: #000000 !important;
  line-height: 24px !important;
}

.modal-body .flatpickr-next-month::before {
  content: '>' !important;
  font-size: 14px !important;
  color: #000000 !important;
  line-height: 24px !important;
}

.modal-body .date-inputs {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.modal-body .date-input-group {
  flex: 1 1 0;
}

.modal-body .date-input {
  width: 100%;
  max-width: 140px;
  font-size: 0.95rem;
  border: 1px solid #d0d0d0;
}

.modal-body .check-availability {
  background-color: #00d4ff;
  color: #000000;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  width: auto;
  margin: 0;
  align-self: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-verificar {
  background-color: #005eff;
  color: white;
  border-radius: 8px;
  padding: 10px 18px;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.btn-verificar:hover {
  background-color: #0040c0;
}

.modal-body .check-availability:hover {
  background-color: #00b7e6;
  transform: translateY(-2px);
}

.form-container {
  margin-top: 10px;
}

/* Fullscreen modal overlay styles */
#fullscreenModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  overflow: hidden;
}

#fullscreenModal.active {
  display: flex;
}

#fullscreenModal .modal-content {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  overflow: hidden;
}

#fullscreenModal .media-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#fullscreenModal img,
#fullscreenModal video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#fullscreenModal .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

#fullscreenModal .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  z-index: 10000;
}

#fullscreenModal .nav-btn:hover {
  opacity: 1;
}

#prevBtn { left: 10px; }
#nextBtn { right: 10px; }

.modal-footer {
  justify-content: center;
  border-top: 1px solid #e0e0e0;
}

.close-room-modal {
  min-width: 120px;
  position: relative;
  z-index: 100000;
}

/* Modal de normas compacto */
#rulesModal .modal-content {
  max-height: 60vh;
}

#rulesModal .modal-body {
  max-height: 50vh;
  overflow-y: auto;
}

