/* Horizon Booking Widget Styles */

.booking-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.booking-overlay.active {
  opacity: 1;
  visibility: visible;
}

.booking-widget {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.booking-overlay.active .booking-widget {
  transform: translateY(0);
}

.booking-header {
  background: linear-gradient(135deg, #e91e63, #ff9800);
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.booking-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.booking-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.booking-content {
  padding: 2rem;
}

.booking-features {
  margin: 1.5rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.feature-item i {
  width: 20px;
  margin-right: 0.75rem;
}

.quick-booking-form {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.booking-footer {
  padding: 1.5rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Enhanced booking buttons */
.booking-trigger {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.booking-trigger::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.booking-trigger:hover::before {
  width: 300px;
  height: 300px;
}

/* Availability widget styles */
.availability-widget {
  background: linear-gradient(135deg, #e91e63, #ff9800);
  border-radius: 16px;
  padding: 2rem;
  color: white;
  box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
  margin: 2rem 0;
}

.availability-widget h3 {
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.availability-form .form-control,
.availability-form .form-select {
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.availability-form .form-control:focus,
.availability-form .form-select:focus {
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.3);
  transform: translateY(-2px);
}

.availability-form .btn {
  border-radius: 10px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.availability-form .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Booking notification */
.booking-notification {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 10000;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Room booking integration */
.room-booking-card {
  border: 2px solid transparent;
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.room-booking-card:hover {
  border-color: #e91e63;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(233, 30, 99, 0.2);
}

.room-booking-card .card-footer {
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  border-top: none;
}

.price-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e91e63;
  margin-bottom: 0.5rem;
}

.price-note {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .booking-widget {
    width: 95%;
    margin: 1rem;
  }
  
  .booking-content {
    padding: 1.5rem;
  }
  
  .quick-booking-form {
    padding: 1rem;
  }
  
  .booking-footer {
    padding: 1rem;
    flex-direction: column;
  }
  
  .booking-footer .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .availability-widget {
    padding: 1.5rem;
    margin: 1rem 0;
  }
}

/* Loading states */
.booking-loading {
  position: relative;
  pointer-events: none;
}

.booking-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #e91e63;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Integration with existing styles */
.btn-prenota {
  background: linear-gradient(135deg, #e91e63, #ff9800);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-prenota:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
  color: white;
}