/* Booking Widget Styles */
.booking-widget {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--color-white, #fff);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.booking-widget__header {
  text-align: center;
  margin-bottom: 2rem;
}

.booking-widget__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.booking-widget__subtitle {
  color: var(--color-gray, #666);
}

/* Steps indicator */
.booking-steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.booking-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--color-gray, #666);
  opacity: 0.5;
}

.booking-step.active {
  opacity: 1;
  font-weight: 600;
  color: var(--color-primary, #1a5f7a);
}

.booking-step.completed {
  opacity: 1;
  color: var(--color-success, #22c55e);
}

.booking-step__number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-light, #f3f4f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.booking-step.active .booking-step__number {
  background: var(--color-primary, #1a5f7a);
  color: white;
}

.booking-step.completed .booking-step__number {
  background: var(--color-success, #22c55e);
  color: white;
}

/* Charter type selection - OLD style (keep for backwards compatibility) */
.charter-types {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* NEW Charter Card Design - Photo-based cards */
.charter-section {
  margin-bottom: 2rem;
}

.charter-section__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray, #6b7280);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.charter-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.charter-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.charter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--color-primary, #1a5f7a);
}

.charter-card__image {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.charter-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.charter-card:hover .charter-card__image img {
  transform: scale(1.05);
}

.charter-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  background: var(--color-primary, #1a5f7a);
  border-radius: 20px;
}

.charter-card__content {
  padding: 1rem 1.25rem 1.25rem;
}

.charter-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.charter-card__description {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.charter-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}

.charter-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: #9ca3af;
}

.charter-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.charter-card__price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary, #1a5f7a);
  text-align: right;
}

.charter-card__price small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: #9ca3af;
}

/* Responsive for new charter cards */
@media (max-width: 640px) {
  .charter-cards {
    grid-template-columns: 1fr;
  }

  .charter-card__image {
    height: 140px;
  }

  .charter-card__name {
    font-size: 0.95rem;
  }

  .charter-card__description {
    font-size: 0.75rem;
  }
}

.charter-type-card {
  padding: 1.5rem;
  border: 2px solid var(--color-light, #e5e7eb);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.charter-type-card:hover {
  border-color: var(--color-primary, #1a5f7a);
  background: rgba(26, 95, 122, 0.02);
}

.charter-type-card.selected {
  border-color: var(--color-primary, #1a5f7a);
  background: rgba(26, 95, 122, 0.05);
}

.charter-type-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.charter-type-card__name {
  font-weight: 600;
  font-size: 1.125rem;
}

.charter-type-card__price {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary, #1a5f7a);
}

.charter-type-card__price small {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-gray, #666);
}

.charter-type-card__description {
  color: var(--color-gray, #666);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.charter-type-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--color-gray, #888);
}

/* Calendar */
.booking-calendar {
  margin-bottom: 2rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-header__month {
  font-weight: 600;
  font-size: 1.125rem;
}

.calendar-header__nav {
  display: flex;
  gap: 0.5rem;
}

.calendar-header__btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-light, #e5e7eb);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.calendar-header__btn:hover {
  background: var(--color-light, #f3f4f6);
}

.calendar-header__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gray, #666);
  padding: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--color-light, #f3f4f6);
}

.calendar-day:hover:not(.disabled):not(.unavailable) {
  background: var(--color-primary, #1a5f7a);
  color: white;
}

.calendar-day.available {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-success, #22c55e);
  font-weight: 600;
}

.calendar-day.limited {
  background: rgba(234, 179, 8, 0.15);
  color: #ca8a04;
  font-weight: 600;
}

.calendar-day.unavailable,
.calendar-day.disabled {
  background: transparent;
  color: var(--color-gray, #ccc);
  cursor: not-allowed;
}

.calendar-day.selected {
  background: var(--color-primary, #1a5f7a);
  color: white;
  font-weight: 600;
}

.calendar-day.past {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Time slots */
.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.time-slot {
  padding: 1rem;
  border: 2px solid var(--color-light, #e5e7eb);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.time-slot:hover:not(.unavailable) {
  border-color: var(--color-primary, #1a5f7a);
}

.time-slot.selected {
  border-color: var(--color-primary, #1a5f7a);
  background: rgba(26, 95, 122, 0.05);
}

.time-slot.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.time-slot__time {
  font-weight: 600;
  font-size: 1rem;
}

.time-slot__spots {
  font-size: 0.75rem;
  color: var(--color-gray, #666);
  margin-top: 0.25rem;
}

/* Guest count */
.guest-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--color-light, #f9fafb);
  border-radius: 12px;
}

.guest-selector__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-primary, #1a5f7a);
  background: white;
  color: var(--color-primary, #1a5f7a);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.guest-selector__btn:hover:not(:disabled) {
  background: var(--color-primary, #1a5f7a);
  color: white;
}

.guest-selector__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.guest-selector__count {
  text-align: center;
}

.guest-selector__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary, #1a5f7a);
}

.guest-selector__label {
  font-size: 0.875rem;
  color: var(--color-gray, #666);
}

/* Customer form */
.booking-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.booking-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .booking-form__row {
    grid-template-columns: 1fr;
  }
}

.booking-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.booking-form__group--full {
  grid-column: 1 / -1;
}

.booking-form__label {
  font-size: 0.875rem;
  font-weight: 500;
}

.booking-form__input,
.booking-form__textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-light, #e5e7eb);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.booking-form__input:focus,
.booking-form__textarea:focus {
  outline: none;
  border-color: var(--color-primary, #1a5f7a);
}

.booking-form__textarea {
  resize: vertical;
  min-height: 100px;
}

/* Summary */
.booking-summary {
  background: var(--color-light, #f9fafb);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.booking-summary__title {
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-light, #e5e7eb);
}

.booking-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
}

.booking-summary__row--total {
  font-weight: 700;
  font-size: 1.125rem;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--color-light, #e5e7eb);
}

/* Actions */
.booking-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.booking-actions .btn {
  flex: 1;
  max-width: 200px;
}

/* Loading state */
.booking-widget--loading {
  pointer-events: none;
  opacity: 0.6;
}

.booking-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.booking-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-light, #e5e7eb);
  border-top-color: var(--color-primary, #1a5f7a);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error state */
.booking-error {
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #dc2626;
  text-align: center;
  margin-bottom: 1rem;
}

/* Calendar legend */
.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
}

.calendar-legend__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calendar-legend__dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.calendar-legend__dot--available {
  background: rgba(34, 197, 94, 0.3);
}

.calendar-legend__dot--limited {
  background: rgba(234, 179, 8, 0.3);
}

.calendar-legend__dot--unavailable {
  background: var(--color-light, #e5e7eb);
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile widget container */
@media (max-width: 768px) {
  .booking-widget {
    padding: 1rem;
    border-radius: 12px;
    margin: 0 -0.5rem;
  }

  .booking-widget__header {
    margin-bottom: 1.5rem;
  }

  .booking-widget__title {
    font-size: 1.25rem;
  }

  /* Mobile step indicator - horizontal scroll or compact */
  .booking-steps {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    gap: 0.25rem;
    justify-content: flex-start;
  }

  .booking-step {
    flex-shrink: 0;
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }

  .booking-step__label {
    display: none;
  }

  .booking-step__number {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  /* Charter type cards - stack on mobile */
  .charter-types {
    gap: 0.75rem;
  }

  .charter-type-card {
    padding: 1rem;
  }

  .charter-type-card__header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .charter-type-card__name {
    font-size: 1rem;
  }

  .charter-type-card__price {
    font-size: 1.125rem;
  }

  .charter-type-card__description {
    font-size: 0.8125rem;
  }

  .charter-type-card__meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Calendar mobile styles */
  .booking-calendar {
    margin-bottom: 1.5rem;
  }

  .calendar-header {
    margin-bottom: 0.75rem;
  }

  .calendar-header__month {
    font-size: 1rem;
  }

  .calendar-header__btn {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }

  .calendar-grid {
    gap: 2px;
  }

  .calendar-day-header {
    font-size: 0.625rem;
    padding: 0.25rem;
  }

  .calendar-day {
    font-size: 0.75rem;
    border-radius: 6px;
    min-height: 36px;
  }

  .calendar-legend {
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.6875rem;
  }

  .calendar-legend__dot {
    width: 10px;
    height: 10px;
  }

  /* Time slots - 2 columns on mobile */
  .time-slots {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .time-slot {
    padding: 0.75rem;
    border-radius: 8px;
  }

  .time-slot__time {
    font-size: 0.875rem;
  }

  .time-slot__spots {
    font-size: 0.6875rem;
  }

  /* Guest selector mobile */
  .guest-selector {
    padding: 1rem;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .guest-selector__btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .guest-selector__number {
    font-size: 1.75rem;
  }

  .guest-selector__label {
    font-size: 0.75rem;
  }

  /* Form mobile styles */
  .booking-form {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .booking-form__row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .booking-form__label {
    font-size: 0.8125rem;
  }

  .booking-form__input,
  .booking-form__textarea {
    padding: 0.625rem 0.75rem;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .booking-form__textarea {
    min-height: 80px;
  }

  /* Summary mobile */
  .booking-summary {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
  }

  .booking-summary__title {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .booking-summary__row {
    font-size: 0.8125rem;
    padding: 0.375rem 0;
  }

  .booking-summary__row--total {
    font-size: 1rem;
  }

  /* Actions mobile - stack buttons */
  .booking-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .booking-actions .btn {
    max-width: 100%;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  /* Error message mobile */
  .booking-error {
    padding: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 375px) {
  .booking-widget {
    padding: 0.75rem;
  }

  .booking-widget__title {
    font-size: 1.125rem;
  }

  .charter-type-card {
    padding: 0.875rem;
  }

  .calendar-day {
    min-height: 32px;
    font-size: 0.6875rem;
  }

  .time-slots {
    grid-template-columns: 1fr;
  }

  .guest-selector {
    gap: 0.75rem;
  }

  .guest-selector__number {
    font-size: 1.5rem;
  }
}

/* Touch-friendly tap targets */
@media (pointer: coarse) {
  .calendar-day {
    min-height: 44px;
  }

  .time-slot {
    min-height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .charter-type-card {
    min-height: 80px;
  }

  .guest-selector__btn {
    width: 48px;
    height: 48px;
  }

  .booking-form__input,
  .booking-form__textarea {
    min-height: 48px;
  }
}
