/* Hotel Booking Plugin Styles */
#hotel-booking-container {
  max-width: 1200px;
  margin: 0 auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.booking-header {
  text-align: center;
  margin-bottom: 40px;
}

.booking-header h2 {
  color: #1565c0;
  font-size: 2.2em;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
}

.booking-header p {
  color: #424242;
  font-size: 1.1em;
  margin: 0;
  font-style: italic;
}

.booking-search-form {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-group.full-width {
  flex: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1565c0;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e3f2fd;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2196f3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.search-btn {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(33, 150, 243, 0.3);
}

.search-btn:active {
  transform: translateY(0);
}

.btn-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#availability-results {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.results-header h3 {
  color: #1565c0;
  font-size: 1.8em;
  margin: 0;
}

.lowest-price {
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
}

.room-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.room-card::before {
  content: "🏖️";
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  opacity: 0.3;
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.room-info h4 {
  color: #1565c0;
  font-size: 1.4em;
  margin: 0 0 5px 0;
}

.room-type {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.room-description {
  color: #424242;
  line-height: 1.6;
  margin-bottom: 15px;
}

.room-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.amenity-tag {
  background: #e3f2fd;
  color: #1565c0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.room-pricing {
  text-align: right;
}

.price-main {
  font-size: 2em;
  font-weight: 700;
  color: #1565c0;
  margin-bottom: 5px;
}

.price-details {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.availability-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.rooms-available {
  color: #4caf50;
  font-weight: 600;
}

.book-room-btn {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.book-room-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.3);
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.close:hover {
  color: #333;
}

.booking-summary {
  background: #e3f2fd;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
}

.booking-summary h4 {
  color: #1565c0;
  margin-top: 0;
}

.guest-details h4,
.payment-details h4 {
  color: #1565c0;
  border-bottom: 2px solid #e3f2fd;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.payment-note {
  background: #fff3e0;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #e65100;
  font-size: 14px;
  border-left: 4px solid #ff9800;
}

.booking-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.cancel-btn {
  background: #f5f5f5;
  color: #666;
  border: 2px solid #ddd;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  background: #e0e0e0;
}

.book-btn {
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

/* Success Modal */
.success-content {
  text-align: center;
  padding: 50px 30px;
}

.success-icon {
  font-size: 4em;
  color: #4caf50;
  margin-bottom: 20px;
}

.success-content h3 {
  color: #1565c0;
  font-size: 2em;
  margin-bottom: 15px;
}

.close-success-btn {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.close-success-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  #hotel-booking-container {
    padding: 20px;
    margin: 10px;
  }

  .form-row {
    flex-direction: column;
  }

  .form-group {
    min-width: auto;
  }

  .results-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .room-header {
    flex-direction: column;
    gap: 15px;
  }

  .room-pricing {
    text-align: left;
  }

  .availability-info {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 20px;
  }

  .booking-actions {
    flex-direction: column;
  }

  .booking-header h2 {
    font-size: 2em;
  }
}

/* Loading Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn-loader::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

/* Form Validation */
.form-group input:invalid,
.form-group select:invalid {
  border-color: #f44336;
}

.form-group input:valid,
.form-group select:valid {
  border-color: #4caf50;
}

/* Hover Effects */
.room-card:hover .book-room-btn {
  background: linear-gradient(135deg, #ffb74d 0%, #ff9800 100%);
}

/* Price Highlight */
.price-highlight {
  background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
  padding: 5px 10px;
  border-radius: 15px;
  display: inline-block;
  margin-left: 10px;
  font-size: 0.8em;
  font-weight: 600;
  color: #333;
}

/* Villa-specific enhancements */
.villa-badge {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 10px;
}

.contact-info {
  background: #e3f2fd;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: center;
}
