/* =====================================================
   Líneas Salmón — Booking Wizard Styles
   ===================================================== */

/* ── Page wrapper ────────────────────────────────────── */
.booking-page {
  min-height: 100vh;
  background: #eef2f7;
  font-family: 'Inter', sans-serif;
}

/* ── Header bar ─────────────────────────────────────── */
.booking-header {
  background: #1c6fa0;
  color: #fff;
  text-align: center;
  padding: 14px 24px;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.01em;
}

.booking-header .icon { font-size: 1.5rem; }

/* ── Step bar ───────────────────────────────────────── */
.booking-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 16px 8px;
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #c8d4e0;
  background: #fff;
  color: #5a7a9a;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: default;
  transition: all .2s ease;
  white-space: nowrap;
}

.step-btn.active {
  background: #1c6fa0;
  border-color: #1c6fa0;
  color: #fff;
}

.step-btn.done {
  background: #e8f5e9;
  border-color: #81c784;
  color: #388e3c;
}

.step-btn .step-icon { font-size: 1rem; }

/* ── Step content panel ─────────────────────────────── */
.booking-panel {
  max-width: 820px;
  margin: 16px auto 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 32px 36px;
}

.booking-panel h3 {
  text-align: center;
  color: #1a3d5c;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 28px;
}

/* ── Port selection cards ───────────────────────────── */
.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  justify-content: center;
}

.port-card {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.port-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
}

.port-card.selected {
  border-color: #1c6fa0;
  box-shadow: 0 0 0 3px rgba(28,111,160,0.2);
}

.port-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.port-card-name {
  background: rgba(15,45,104,0.82);
  color: #fff;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.port-card.selected .port-card-name {
  background: #1c6fa0;
}

.port-card-name .check {
  opacity: 0;
  transition: opacity .2s;
  font-size: 1.1rem;
}

.port-card.selected .port-card-name .check { opacity: 1; }

/* ── Calendar ───────────────────────────────────────── */
.bk-calendar {
  max-width: 380px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}

.bk-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a3d5c;
}

.bk-cal-nav {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #1c6fa0;
  padding: 0 6px;
  line-height: 1;
}

.bk-cal-nav:hover { color: #0f2d68; }

.bk-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.bk-cal-dow {
  text-align: center;
  padding: 8px 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: #1c6fa0;
}

.bk-cal-day {
  text-align: center;
  padding: 10px 4px;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 6px;
  margin: 2px;
  color: #1a3d5c;
  transition: background .15s;
}

.bk-cal-day:hover:not(.blocked):not(.empty):not(.past) { background: #e0f0fa; }

.bk-cal-day.today { font-weight: 800; border: 2px solid #1c6fa0; }
.bk-cal-day.selected { background: #1c6fa0 !important; color: #fff; border-radius: 6px; }
.bk-cal-day.blocked { color: #ccc; cursor: not-allowed; text-decoration: line-through; }
.bk-cal-day.past    { color: #ccc; cursor: not-allowed; }
.bk-cal-day.empty   { cursor: default; }

.bk-cal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e8eef5;
}

.bk-cal-footer button {
  border: none;
  border-radius: 8px;
  padding: 9px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-cal-today   { background: #4caf50; color: #fff; }
.btn-cal-clear   { background: #e53935; color: #fff; }
.btn-cal-close   { background: #1c6fa0; color: #fff; }

.selected-date-display {
  text-align: center;
  margin-top: 14px;
  font-size: 1rem;
  color: #1a3d5c;
  font-weight: 600;
}

/* ── Time slots ─────────────────────────────────────── */
.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.time-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #d0dde9;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #1a3d5c;
  background: #f8fbff;
  transition: all .2s;
}

.time-option:hover { border-color: #1c6fa0; background: #e8f4fc; }
.time-option.selected { border-color: #1c6fa0; background: #1c6fa0; color: #fff; }

.time-option input[type="radio"] { accent-color: #1c6fa0; }

/* ── Ticket type ────────────────────────────────────── */
.ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 480px;
  margin: 0 auto;
}

.ticket-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
  border: 2px solid #d0dde9;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: #1a3d5c;
  background: #f8fbff;
  transition: all .2s;
}

.ticket-option:hover { border-color: #1c6fa0; background: #e8f4fc; }
.ticket-option.selected { border-color: #1c6fa0; background: #1c6fa0; color: #fff; }

/* ── Passenger counter ──────────────────────────────── */
.pax-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #eef2f7;
}

.pax-row:last-child { border-bottom: none; }

.pax-label { font-weight: 600; color: #1a3d5c; }
.pax-label small { color: #7a9ab5; font-weight: 400; display: block; font-size: 0.8rem; }
.pax-price { color: #1c6fa0; font-size: 0.85rem; margin-top: 2px; }

.pax-counter {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d0dde9;
  border-radius: 8px;
  overflow: hidden;
}

.pax-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: #1c6fa0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.pax-btn:hover { background: #155b88; }
.pax-btn:disabled { background: #b0c4d4; cursor: not-allowed; }

.pax-count {
  width: 48px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #1a3d5c;
  background: #fff;
  border: none;
  padding: 8px 0;
}

/* ── Bus option ─────────────────────────────────────── */
.bus-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 2px solid #d0dde9;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 24px;
  background: #f8fbff;
  transition: border-color .2s;
}

.bus-option:hover { border-color: #1c6fa0; }
.bus-option.checked { border-color: #1c6fa0; background: #e8f4fc; }
.bus-option input { accent-color: #1c6fa0; width: 18px; height: 18px; }

/* ── Contact form ───────────────────────────────────── */
.contact-field {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-field label {
  font-weight: 600;
  color: #1a3d5c;
  text-align: right;
}

.contact-field .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.contact-field .input-icon {
  position: absolute;
  left: 12px;
  color: #7a9ab5;
  font-size: 1rem;
  pointer-events: none;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1px solid #d0dde9;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1a3d5c;
  background: #f8fbff;
  outline: none;
  font-family: inherit;
  transition: border-color .2s;
}

.contact-field textarea { padding-top: 10px; resize: vertical; }
.contact-field input:focus,
.contact-field textarea:focus { border-color: #1c6fa0; background: #fff; }

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 8px;
}

.terms-row input { accent-color: #1c6fa0; margin-top: 3px; }

/* ── Navigation buttons ─────────────────────────────── */
.booking-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-bk-prev {
  background: #e53935; color: #fff; border: none;
  padding: 12px 28px; border-radius: 8px; font-weight: 700;
  font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.btn-bk-prev:hover { background: #c62828; }

.btn-bk-next {
  background: #1c6fa0; color: #fff; border: none;
  padding: 12px 28px; border-radius: 8px; font-weight: 700;
  font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.btn-bk-next:hover { background: #155b88; }

.btn-bk-finish {
  background: #388e3c; color: #fff; border: none;
  padding: 12px 28px; border-radius: 8px; font-weight: 700;
  font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.btn-bk-finish:hover { background: #2e7d32; }

.btn-bk-cancel {
  background: #e53935; color: #fff; border: none;
  padding: 12px 24px; border-radius: 8px; font-weight: 700;
  font-size: 0.92rem; cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.btn-bk-cancel:hover { background: #c62828; }

/* ── Footer ─────────────────────────────────────────── */
.booking-footer {
  text-align: center;
  padding: 24px 16px;
  color: #7a9ab5;
  font-size: 0.8rem;
}

.booking-footer a { color: #1c6fa0; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  .booking-panel { padding: 20px 16px; margin: 10px; border-radius: 10px; }
  .contact-field { grid-template-columns: 1fr; }
  .contact-field label { text-align: left; }
  .ticket-grid { grid-template-columns: 1fr; }
  .step-btn { font-size: 0.75rem; padding: 6px 10px; }
  .port-grid { grid-template-columns: repeat(2, 1fr); }
}
