/* ========================================
   EVENT BOOKING CALENDAR STYLES
   ======================================== */

/* === BOOKING SECTION === */
.booking-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #0b1220 0%, #0f1627 50%, #0b1220 100%);
  position: relative;
}

.booking-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 900px) {
  .booking-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* === CALENDAR CARD === */
.calendar-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.calendar-header h3 {
  color: #d4af37;
  font-size: 1.4rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-nav {
  display: flex;
  gap: 8px;
}

.calendar-nav button {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #d4af37;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.calendar-nav button:hover {
  background: #d4af37;
  color: #0b1220;
}

/* === CALENDAR GRID === */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.calendar-weekdays span {
  text-align: center;
  color: #d4af37;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.4);
}

.calendar-day.today {
  background: rgba(178, 34, 34, 0.3);
  border-color: #b22222;
  font-weight: 700;
}

.calendar-day.selected {
  background: linear-gradient(135deg, #d4af37, #b8962e);
  color: #0b1220;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.calendar-day.disabled {
  color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
}

.calendar-day.has-event {
  /* No dot needed - showing event text instead */
}

/* Day events container */
.day-events {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

/* Individual event item */
.day-event-item {
  background: linear-gradient(135deg, rgba(178, 34, 34, 0.6), rgba(139, 26, 26, 0.6));
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 4px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(178, 34, 34, 0.8);
}

.day-event-item:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.7), rgba(184, 150, 46, 0.7));
  border-color: #d4af37;
  transform: scale(1.02);
}

.calendar-day.booked {
  background: rgba(178, 34, 34, 0.2);
  color: rgba(255, 255, 255, 0.5);
}

.calendar-day.booked::before {
  content: '×';
  position: absolute;
  font-size: 1.5rem;
  color: rgba(178, 34, 34, 0.6);
}

/* === BOOKING FORM CARD === */
.booking-form-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.booking-form-card h3 {
  color: #d4af37;
  font-size: 1.4rem;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: #d4af37;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: #0b1220;
  color: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* === SELECTED DATE DISPLAY === */
.selected-date-display {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d4af37;
  font-weight: 600;
}

.selected-date-display .icon {
  font-size: 1.2rem;
}

.selected-date-display.empty {
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

/* === EVENT TYPE SELECTOR === */
.event-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.event-type-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.event-type-btn:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.1);
}

.event-type-btn.selected {
  background: linear-gradient(135deg, rgba(178, 34, 34, 0.3), rgba(178, 34, 34, 0.2));
  border-color: #b22222;
  color: #fff;
}

.event-type-btn .icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 4px;
}

.event-type-btn .label {
  font-size: 0.85rem;
  font-weight: 600;
}

/* === TIME SLOTS === */
.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 600px) {
  .time-slots {
    grid-template-columns: repeat(3, 1fr);
  }
}

.time-slot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 8px;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.time-slot:hover:not(.unavailable) {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.1);
}

.time-slot.selected {
  background: linear-gradient(135deg, #d4af37, #b8962e);
  color: #0b1220;
  font-weight: 700;
  border-color: #d4af37;
}

.time-slot.unavailable {
  color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* === SUBMIT BUTTON === */
.booking-submit {
  background: linear-gradient(135deg, #b22222, #8b0000);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.booking-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(178, 34, 34, 0.4);
}

.booking-submit:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* === BOOKING CONFIRMATION MODAL === */
.booking-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.booking-modal.open {
  display: flex;
}

.booking-modal-content {
  background: linear-gradient(145deg, #1a1f2e, #0f1627);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 32px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.booking-modal-content .success-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.booking-modal-content h3 {
  color: #d4af37;
  font-size: 1.6rem;
  margin: 0 0 12px;
}

.booking-modal-content p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px;
  line-height: 1.6;
}

.booking-details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.booking-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-details .detail-row:last-child {
  border-bottom: none;
}

.booking-details .detail-label {
  color: rgba(255, 255, 255, 0.6);
}

.booking-details .detail-value {
  color: #d4af37;
  font-weight: 600;
}

.modal-close-btn {
  background: linear-gradient(135deg, #d4af37, #b8962e);
  color: #0b1220;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* === UPCOMING EVENTS LIST === */
.upcoming-events {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.upcoming-events h4 {
  color: #d4af37;
  font-size: 1rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-item .event-date {
  background: linear-gradient(135deg, #b22222, #8b0000);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  min-width: 50px;
}

.event-item .event-date .day {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}

.event-item .event-date .month {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.event-item .event-info {
  flex: 1;
}

.event-item .event-info .event-name {
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
}

.event-item .event-info .event-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* === BOOKING HERO === */
.booking-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-hero .hero-slideshow .slide img {
  filter: brightness(0.7);
}

.booking-hero .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(11, 18, 32, 0.6) 0%,
    rgba(178, 34, 34, 0.3) 50%,
    rgba(11, 18, 32, 0.9) 100%
  );
}
