/* SamSeaTrips · booking.css · dev. 360°Stark */

.booking-page { background: var(--sand-light); }

/* ── Layout ── */
.booking-main { padding-top: 60px; min-height: 100vh; }
.booking-layout { display: grid; grid-template-columns: 340px 1fr; min-height: calc(100vh - 60px); }

/* ── Sidebar ── */
.booking-sidebar { background: var(--navy); padding: 48px 36px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.sidebar-inner { display: flex; flex-direction: column; gap: 20px; }
.sidebar-eyebrow { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.sidebar-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: #FAFAF6; line-height: 1.2; }
.sidebar-title em { font-style: italic; color: var(--terra-light); }
.sidebar-sub { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; font-weight: 300; }
.sidebar-policies { display: flex; flex-direction: column; gap: 10px; }
.policy-item { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,0.5); }
.policy-item i { font-size: 15px; color: var(--turquoise); flex-shrink: 0; }
.sidebar-dev { font-size: 10px; color: rgba(255,255,255,0.15); letter-spacing: 1px; margin-top: auto; padding-top: 20px; }

/* Price box */
.price-box { background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.price-box-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.6); }
.price-box-row strong { color: #FAFAF6; font-size: 18px; font-family: var(--font-display); }
.price-box-row.highlight strong { color: var(--terra-light); font-size: 22px; }
.price-box-row.muted { font-size: 11px; color: rgba(255,255,255,0.35); }
.price-box-label { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 4px; }

/* ── Form area ── */
.booking-form-wrap { padding: 40px 48px; max-width: 600px; }

/* ── Step indicator ── */
.steps-indicator { display: flex; align-items: center; margin-bottom: 40px; }
.step-dot { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.step-dot span { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--salt); color: var(--muted); font-size: 11px; font-weight: 500; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.step-dot label { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.step-dot.active span { background: var(--navy); color: #FAFAF6; border-color: var(--navy); }
.step-dot.done span { background: var(--turquoise); color: #FAFAF6; border-color: var(--turquoise); }
.step-line { flex: 1; height: 1px; background: var(--border); margin: 0 6px; margin-bottom: 14px; }

/* ── Step panels ── */
.step-panel { display: none; }
.step-panel.active { display: block; }
.step-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.2; margin-bottom: 28px; }
.step-title em { font-style: italic; color: var(--sea); }

/* ── Fields ── */
.field-group { margin-bottom: 20px; }
.field-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }
.field-input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--salt); font-family: var(--font-body); font-size: 14px; color: var(--text); outline: none; transition: border-color 0.2s; box-sizing: border-box; }
.field-input:focus { border-color: var(--navy); }
.field-hint { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.req { color: var(--terra); }

/* ── Type cards ── */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-card { padding: 16px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--salt); cursor: pointer; text-align: left; font-family: var(--font-body); transition: all 0.18s; display: flex; flex-direction: column; gap: 4px; }
.type-card:hover { border-color: var(--navy); }
.type-card.selected { border-color: var(--navy); background: var(--navy); }
.type-icon { font-size: 22px; margin-bottom: 4px; }
.type-name { font-size: 14px; font-weight: 500; color: var(--text); }
.type-card.selected .type-name { color: #FAFAF6; }
.type-desc { font-size: 11px; color: var(--muted); line-height: 1.5; }
.type-card.selected .type-desc { color: rgba(255,255,255,0.55); }

/* ── Duration cards ── */
.duration-list { display: flex; flex-direction: column; gap: 10px; }
.duration-card { padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--salt); cursor: pointer; font-family: var(--font-body); display: flex; align-items: center; justify-content: space-between; transition: all 0.18s; }
.duration-card:hover { border-color: var(--navy); }
.duration-card.selected { border-color: var(--navy); background: var(--navy); }
.duration-left { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.duration-name { font-size: 14px; font-weight: 500; color: var(--text); }
.duration-card.selected .duration-name { color: #FAFAF6; }
.duration-desc { font-size: 11px; color: var(--muted); }
.duration-card.selected .duration-desc { color: rgba(255,255,255,0.5); }
.duration-price { font-size: 16px; font-weight: 600; color: var(--terra); flex-shrink: 0; margin-left: 12px; }
.duration-card.selected .duration-price { color: var(--terra-light); }
.duration-price small { font-size: 11px; font-weight: 400; }

/* ── Calendar ── */
.calendar-wrap { background: var(--salt); border-radius: 14px; border: 0.5px solid var(--border); padding: 16px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-month { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--navy); }
.cal-nav { background: none; border: none; cursor: pointer; color: var(--navy); font-size: 20px; padding: 0 6px; line-height: 1; }
.cal-days-header { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-bottom: 6px; }
.cal-days-header span { text-align: center; font-size: 10px; color: var(--muted); font-weight: 500; padding: 3px 0; letter-spacing: 0.5px; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-cell { aspect-ratio: 1; border-radius: 8px; border: none; background: transparent; cursor: pointer; font-size: 13px; font-family: var(--font-body); color: var(--text); display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.cal-cell:hover:not(:disabled) { background: var(--sand); }
.cal-cell.selected { background: var(--navy); color: #FAFAF6; font-weight: 500; }
.cal-cell.today { border: 1px solid var(--terra); }
.cal-cell:disabled { color: var(--sand-dark); cursor: not-allowed; }
.cal-cell.empty { cursor: default; }

/* ── Slots ── */
.slots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slot-card { padding: 14px 12px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--salt); cursor: pointer; font-family: var(--font-body); text-align: left; transition: all 0.18s; }
.slot-card:hover:not(:disabled) { border-color: var(--navy); }
.slot-card.selected { border-color: var(--navy); background: var(--navy); }
.slot-card:disabled { opacity: 0.35; cursor: not-allowed; }
.slot-time { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.slot-card.selected .slot-time { color: #FAFAF6; }
.slot-label { font-size: 11px; color: var(--muted); }
.slot-card.selected .slot-label { color: rgba(255,255,255,0.55); }
.slot-na { font-size: 10px; color: var(--terra); margin-top: 3px; }

/* ── Pax ── */
.pax-selector { display: flex; align-items: center; justify-content: center; gap: 32px; background: var(--salt); border: 0.5px solid var(--border); border-radius: 16px; padding: 32px; margin-bottom: 12px; }
.pax-btn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: none; cursor: pointer; font-size: 22px; color: var(--navy); display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.pax-btn:hover { background: var(--sand); }
.pax-num { font-family: var(--font-display); font-size: 60px; font-weight: 600; color: var(--navy); min-width: 64px; text-align: center; line-height: 1; }
.pax-hint { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 20px; }

/* Included mini */
.included-mini { background: var(--sand); border-radius: 12px; padding: 16px; }
.included-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.included-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.included-tags span { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: var(--salt); color: var(--navy); }

/* ── Nav buttons ── */
.step-nav { display: flex; gap: 10px; margin-top: 28px; }
.btn-next { flex: 1; padding: 14px; border-radius: 12px; background: var(--navy); color: #FAFAF6; border: none; font-family: var(--font-body); font-size: 14px; font-weight: 500; cursor: pointer; letter-spacing: 0.3px; transition: all 0.18s; }
.btn-next:hover:not(:disabled) { background: var(--navy-mid); }
.btn-next:disabled { background: var(--sand-dark); color: var(--muted); cursor: not-allowed; }
.btn-back { padding: 12px 20px; border-radius: 10px; border: 1.5px solid var(--border); background: none; cursor: pointer; font-family: var(--font-body); font-size: 14px; color: var(--muted); transition: all 0.15s; }
.btn-back:hover { background: var(--sand); }
.btn-ghost-sm { font-size: 12px; color: rgba(255,255,255,0.5); padding: 6px 12px; border-radius: 8px; border: 0.5px solid rgba(255,255,255,0.15); transition: all 0.15s; }
.btn-ghost-sm:hover { color: #FAFAF6; background: rgba(255,255,255,0.08); }

/* ── Boarding pass ── */
.boarding-pass { background: var(--salt); border-radius: 16px; border: 0.5px solid var(--border); overflow: visible; margin-bottom: 16px; }
.bp-header { background: var(--navy); padding: 18px 20px; border-radius: 16px 16px 0 0; display: flex; justify-content: space-between; align-items: flex-start; }
.bp-eyebrow { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.bp-brand { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #FAFAF6; font-style: italic; }
.bp-type { font-size: 13px; color: #FAFAF6; font-weight: 500; }
.bp-perf { border-top: 2px dashed var(--border); margin: 0 20px; position: relative; }
.bp-perf::before { content:''; position:absolute; left:-30px; top:-10px; width:20px; height:20px; border-radius:50%; background:var(--sand-light); border:0.5px solid var(--border); }
.bp-perf::after  { content:''; position:absolute; right:-30px; top:-10px; width:20px; height:20px; border-radius:50%; background:var(--sand-light); border:0.5px solid var(--border); }
.bp-body { padding: 16px 20px; }
.bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 14px; }
.bp-field span { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 2px; }
.bp-field strong { font-size: 13px; color: var(--navy); font-weight: 500; word-break: break-all; }
.bp-included { border-top: 0.5px solid var(--border); padding-top: 12px; }
.bp-inc-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.bp-inc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.bp-inc-tags span { font-size: 10px; padding: 3px 9px; border-radius: 20px; background: var(--sand); color: var(--navy); }
.bp-price { padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.bp-price-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.bp-price-total { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--navy); }
.bp-price-deposit { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--terra); }
.bp-price-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── Pay button ── */
.btn-pay { width: 100%; padding: 16px; border-radius: 12px; background: var(--terra); border: none; color: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 500; cursor: pointer; letter-spacing: 0.3px; margin-bottom: 8px; transition: all 0.18s; }
.btn-pay:hover { background: #B55A2F; }
.btn-pay:disabled { background: var(--sand-dark); color: var(--muted); cursor: not-allowed; }
.pay-sub { font-size: 11px; color: var(--muted); text-align: center; margin-bottom: 20px; line-height: 1.6; }

/* ── Policy reminder ── */
.policy-reminder { background: rgba(13,31,60,0.05); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.policy-reminder strong { color: var(--navy); }

/* ── Error ── */
.booking-error { background: #FCEBEB; color: #791F1F; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 13px; }

/* ── Confirmation ── */
.confirmation { text-align: center; padding: 40px 20px; }
.conf-icon { width: 64px; height: 64px; border-radius: 50%; background: #EAF3DE; color: #27500A; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.confirmation h2 { font-family: var(--font-display); font-size: 28px; color: var(--navy); margin-bottom: 10px; }
.confirmation p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.conf-ref { font-size: 14px; color: var(--navy); background: var(--sand); border-radius: 8px; padding: 10px 20px; display: inline-block; }

/* ── Responsive ── */
@media(max-width:900px){
  .booking-layout { grid-template-columns: 1fr; }
  .booking-sidebar { position: static; height: auto; padding: 28px 24px; }
  .booking-form-wrap { padding: 28px 20px; }
}
@media(max-width:480px){
  .type-grid { grid-template-columns: 1fr; }
  .slots-grid { grid-template-columns: 1fr; }
  .bp-grid { grid-template-columns: 1fr; }
}

.slot-time{font-family:var(--font-display);font-size:28px;font-weight:600;color:var(--navy);text-align:center;line-height:1;}
.slot-card.selected .slot-time{color:#FAFAF6;}
.slot-card{padding:20px 14px;text-align:center;}
.slot-na{font-size:10px;color:var(--terra);margin-top:6px;text-align:center;}

/* ══════════════════════════════════════════════════════
   MOBILE BOOKING — Fixed viewport, no full-page scroll
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .booking-page body { overflow: hidden; }

  .booking-main {
    padding-top: 54px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .booking-layout {
    grid-template-columns: 1fr;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Sidebar → barra superior compacta */
  .booking-sidebar {
    position: static;
    height: auto;
    padding: 10px 16px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }

  .sidebar-eyebrow,
  .sidebar-sub,
  .sidebar-policies,
  .sidebar-dev { display: none; }

  .sidebar-title {
    font-size: 15px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }

  /* Price box → inline en la barra */
  .price-box {
    background: transparent;
    border: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    display: flex !important;
  }

  .price-box-row {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    font-size: 10px;
  }

  .price-box-row strong { font-size: 14px; }
  .price-box-row.highlight strong { font-size: 16px; }
  .price-box-row.muted { display: none; }
  .price-box-label { display: none; }

  /* Form wrap → ocupa el espacio restante, scrollable */
  .booking-form-wrap {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 16px 90px;
    -webkit-overflow-scrolling: touch;
  }

  /* Steps indicator → más compacto */
  .steps-indicator {
    margin-bottom: 20px;
    padding: 0 4px;
  }

  .step-dot span {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .step-dot label { display: none; }
  .step-line { margin: 0 4px; margin-bottom: 0; }

  /* Step title */
  .step-title { font-size: 20px; margin-bottom: 18px; }

  /* Type cards → 2 columnas compactas */
  .type-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .type-card { padding: 12px 10px; }
  .type-icon { font-size: 18px; margin-bottom: 3px; }
  .type-name { font-size: 13px; }
  .type-desc { font-size: 10px; }

  /* Duration cards → más compactas */
  .duration-card { padding: 11px 14px; }
  .duration-name { font-size: 13px; }
  .duration-desc { font-size: 10px; }
  .duration-price { font-size: 14px; }

  /* Calendar → compacto */
  .calendar-wrap { padding: 12px; }
  .cal-cell { font-size: 12px; border-radius: 6px; }
  .cal-month { font-size: 14px; }

  /* Slots → 3 columnas en móvil */
  .slots-grid { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .slot-card { padding: 14px 8px; }
  .slot-time { font-size: 20px; }

  /* Pax selector */
  .pax-selector { padding: 20px; }
  .pax-num { font-size: 48px; }
  .pax-btn { width: 40px; height: 40px; }

  /* Included mini → tags pequeños */
  .included-tags span { font-size: 10px; padding: 3px 8px; }

  /* Form fields */
  .field-input { padding: 11px 12px; font-size: 14px; }

  /* Boarding pass en móvil */
  .bp-grid { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .bp-field strong { font-size: 12px; }
  .bp-price-total { font-size: 18px; }
  .bp-price-deposit { font-size: 22px; }

  /* NAV buttons → fixed bottom */
  .step-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 12px 16px;
    background: rgba(247,242,232,0.97);
    backdrop-filter: blur(8px);
    border-top: 0.5px solid var(--border);
    z-index: 100;
    margin: 0;
    gap: 8px;
  }

  .btn-next { padding: 13px; font-size: 14px; border-radius: 10px; }
  .btn-back  { padding: 11px 16px; }

  /* Pay button también fixed */
  .btn-pay { border-radius: 10px; }
  .pay-sub { font-size: 10px; }

  /* Policy reminder más compacta */
  .policy-reminder { font-size: 11px; padding: 8px 12px; }

  /* Confirmation */
  .confirmation { padding: 24px 12px; }
  .conf-icon { width: 52px; height: 52px; font-size: 22px; }
  .confirmation h2 { font-size: 22px; }
}

@media (max-width: 380px) {
  .slots-grid { grid-template-columns: 1fr 1fr 1fr; }
  .slot-time { font-size: 17px; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .bp-grid { grid-template-columns: 1fr; }
}
