/* ── WeTour Booking Widget Styles ────────────────────────────────────────── */

:root {
  --wt-ocean:    #0a5c6e;
  --wt-teal:     #0e8a78;
  --wt-sand:     #f5efe4;
  --wt-gold:     #c9973c;
  --wt-white:    #ffffff;
  --wt-dark:     #1a2733;
  --wt-muted:    #6b7a87;
  --wt-border:   #dde5eb;
  --wt-radius:   12px;
  --wt-shadow:   0 4px 24px rgba(10,92,110,0.10);
  /* Reliable system font stacks — no external dependency */
  --wt-font:     'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --wt-display:  Georgia, 'Times New Roman', serif;
}

.wetour-widget {
  font-family: var(--wt-font);
  color: var(--wt-dark);
  max-width: 780px;
  margin: 0 auto;
  /* Reset common theme overrides */
  line-height: 1.5;
  font-size: 14px;
  box-sizing: border-box;
}

.wetour-widget *,
.wetour-widget *::before,
.wetour-widget *::after {
  box-sizing: border-box;
}

.wetour-hidden { display: none !important; }

/* Panels hidden by default — JS shows the active one */
.wetour-panel { display: none !important; }
.wetour-panel.wetour-active { display: block !important; }

/* ── Step Indicators ──────────────────────────────────────────────────────── */
.wetour-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
  flex-wrap: wrap;
  row-gap: 10px;
}

.wetour-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wt-muted);
  transition: color 0.2s;
}

.wetour-step-divider {
  width: 32px;
  height: 2px;
  background: var(--wt-border);
  margin: 0 4px;
}

.wetour-step .step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--wt-border);
  color: var(--wt-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  transition: all 0.2s;
}

.wetour-step.active { color: var(--wt-ocean); }
.wetour-step.active .step-num { background: var(--wt-ocean); color: #fff; }
.wetour-step.completed { color: var(--wt-teal); }
.wetour-step.completed .step-num { background: var(--wt-teal); color: #fff; }
.wetour-step.completed .step-num::before { content: '✓'; }
.wetour-step.completed .step-num { font-size: 0; }
.wetour-step.completed .step-num::before { font-size: 13px; }

/* ── Card ─────────────────────────────────────────────────────────────────── */
.wetour-card {
  background: var(--wt-white);
  border-radius: var(--wt-radius);
  box-shadow: var(--wt-shadow);
  padding: 36px;
  border: 1px solid var(--wt-border);
}

.wetour-heading {
  font-family: var(--wt-display);
  font-size: 26px;
  color: var(--wt-ocean);
  margin: 0 0 24px;
  line-height: 1.2;
}

.wetour-subheading {
  font-size: 15px;
  font-weight: 600;
  color: var(--wt-dark);
  margin: 24px 0 12px;
}

/* ── Tour Cards ───────────────────────────────────────────────────────────── */
.wetour-tours-grid { display: flex; flex-direction: column; gap: 16px; }

.wetour-tour-card {
  border: 2px solid var(--wt-border);
  border-radius: var(--wt-radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: stretch;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.wetour-tour-card:hover { border-color: var(--wt-teal); box-shadow: 0 2px 12px rgba(14,138,120,0.15); }
.wetour-tour-card.selected { border-color: var(--wt-ocean); background: #f0f8fa; }

.wetour-tour-img {
  width: 140px; min-width: 140px;
  background-size: cover;
  background-position: center;
}

.wetour-tour-info { flex: 1; padding: 18px 20px; }
.wetour-tour-info h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--wt-dark); }
.wetour-tour-info p  { margin: 0 0 12px; font-size: 13.5px; color: var(--wt-muted); line-height: 1.5; }

.wetour-tour-price { display: flex; gap: 16px; font-size: 13.5px; color: var(--wt-muted); }
.wetour-tour-price strong { color: var(--wt-ocean); }

.wetour-tour-check {
  position: absolute; top: 12px; right: 12px;
  width: 24px; height: 24px;
  background: var(--wt-ocean); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  opacity: 0; transition: opacity 0.2s;
}
.wetour-tour-card.selected .wetour-tour-check { opacity: 1; }

/* ── Calendar ─────────────────────────────────────────────────────────────── */
.wetour-calendar-wrap { max-width: 380px; }

.wetour-cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}

.wetour-cal-prev, .wetour-cal-next {
  background: none; border: 1px solid var(--wt-border);
  border-radius: 8px; width: 34px; height: 34px;
  font-size: 20px; cursor: pointer; color: var(--wt-ocean);
  transition: background 0.15s;
}
.wetour-cal-prev:hover, .wetour-cal-next:hover { background: var(--wt-sand); }

.wetour-cal-month-label { font-weight: 600; font-size: 15px; color: var(--wt-dark); }

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

.cal-header {
  text-align: center; font-size: 11px; font-weight: 700;
  color: var(--wt-muted); text-transform: uppercase;
  padding: 4px 0 8px;
}

.cal-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 13.5px; font-weight: 500;
  cursor: default; transition: all 0.15s;
}

.cal-available {
  background: #e6f4f1; color: var(--wt-teal);
  cursor: pointer; font-weight: 600;
}
.cal-available:hover { background: var(--wt-teal); color: #fff; transform: scale(1.05); }
.cal-selected       { background: var(--wt-ocean); color: #fff; }
.cal-unavailable    { color: #c8d0d8; }
.cal-past           { color: #d8dfe5; }
.cal-empty          { }

.wetour-cal-legend {
  display: flex; gap: 16px; margin-top: 12px;
  font-size: 12px; color: var(--wt-muted);
  align-items: center;
}

.dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px;
}
.dot-avail { background: var(--wt-teal); }
.dot-sel   { background: var(--wt-ocean); }
.dot-none  { background: #d8dfe5; }

/* ── Time Slots ───────────────────────────────────────────────────────────── */
.wetour-timeslots {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px;
}

.wetour-timeslot {
  border: 2px solid var(--wt-border);
  border-radius: 10px; padding: 12px 20px;
  cursor: pointer; transition: all 0.15s;
  min-width: 120px; text-align: center;
}

.wetour-timeslot:hover { border-color: var(--wt-teal); background: #f0f9f7; }
.wetour-timeslot.selected { border-color: var(--wt-ocean); background: #e8f4f7; }

.ts-time  { font-size: 16px; font-weight: 700; color: var(--wt-ocean); }
.ts-avail { font-size: 12px; color: var(--wt-muted); margin-top: 4px; }

/* ── Passengers ───────────────────────────────────────────────────────────── */
.wetour-pax-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }

.wetour-pax-row {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--wt-border); border-radius: var(--wt-radius);
  background: var(--wt-sand);
}

.wetour-pax-label { display: flex; align-items: center; gap: 12px; flex: 1; }
.wetour-pax-label .pax-icon { font-size: 24px; }
.wetour-pax-label strong { display: block; font-weight: 600; font-size: 15px; }
.wetour-pax-label small   { display: block; color: var(--wt-muted); font-size: 12px; }

.wetour-counter { display: flex; align-items: center; gap: 0; }

.counter-btn {
  width: 34px; height: 34px;
  background: var(--wt-white); border: 1px solid var(--wt-border);
  font-size: 18px; font-weight: 600; cursor: pointer;
  color: var(--wt-ocean); line-height: 1;
  transition: background 0.15s;
}
.counter-btn.minus { border-radius: 8px 0 0 8px; }
.counter-btn.plus  { border-radius: 0 8px 8px 0; }
.counter-btn:hover { background: var(--wt-sand); }

.counter-input {
  width: 48px; height: 34px;
  text-align: center; border: 1px solid var(--wt-border);
  border-left: none; border-right: none;
  font-size: 15px; font-weight: 700; color: var(--wt-dark);
  -moz-appearance: textfield;
}
.counter-input::-webkit-inner-spin-button,
.counter-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.wetour-pax-price { min-width: 80px; text-align: right; font-weight: 600; color: var(--wt-ocean); font-size: 15px; }

.wetour-availability-bar {
  background: #fdf8ec;
  border: 1px solid #f0dca0;
  border-radius: 8px; padding: 10px 16px;
  font-size: 13px; color: var(--wt-gold); font-weight: 500;
  margin-bottom: 16px;
}

.wetour-total-box {
  border-top: 2px solid var(--wt-ocean);
  padding-top: 16px; margin-top: 4px;
}

.total-line {
  display: flex; justify-content: space-between;
  font-size: 18px; font-weight: 700; color: var(--wt-dark);
}

.grand-total { color: var(--wt-ocean); font-size: 22px; }

/* ── Contact Form ─────────────────────────────────────────────────────────── */
.wetour-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px;
}

.wetour-field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--wt-dark); margin-bottom: 6px;
}
.wetour-field .req { color: #e55; }
.wetour-field small { font-weight: 400; color: var(--wt-muted); }

.wetour-field input,
.wetour-field textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--wt-border); border-radius: 8px;
  font-family: var(--wt-font); font-size: 14px; color: var(--wt-dark);
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.wetour-field input:focus,
.wetour-field textarea:focus {
  outline: none; border-color: var(--wt-ocean);
  box-shadow: 0 0 0 3px rgba(10,92,110,0.1);
}

.wetour-field-full { grid-column: 1 / -1; }

/* ── Summary Box ──────────────────────────────────────────────────────────── */
.wetour-summary {
  background: var(--wt-sand);
  border-radius: var(--wt-radius); padding: 20px;
  margin-bottom: 24px;
}

.summary-grid { display: flex; flex-direction: column; gap: 10px; }

.summary-row {
  display: flex; justify-content: space-between;
  font-size: 14px; color: var(--wt-dark); padding-bottom: 10px;
  border-bottom: 1px solid var(--wt-border);
}
.summary-row:last-child { border-bottom: none; padding-bottom: 0; }

.summary-total {
  font-weight: 700; font-size: 16px; color: var(--wt-ocean);
  border-top: 2px solid var(--wt-border) !important;
  padding-top: 10px !important; margin-top: 4px;
  border-bottom: none !important;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.wetour-actions {
  display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px;
}

.wetour-btn {
  padding: 13px 28px;
  border-radius: 10px; border: none;
  font-family: var(--wt-font); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  background: var(--wt-ocean); color: #fff;
}
.wetour-btn:hover:not(:disabled) { background: #084a59; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(10,92,110,0.25); }
.wetour-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.wetour-btn-back {
  background: transparent; color: var(--wt-muted);
  border: 1.5px solid var(--wt-border);
}
.wetour-btn-back:hover { background: var(--wt-sand); color: var(--wt-dark); }

.wetour-btn-pay {
  background: linear-gradient(135deg, #0e8a78, #0a5c6e);
  font-size: 15px; padding: 14px 32px;
}
.wetour-btn-pay:hover { background: linear-gradient(135deg, #0d7a69, #084a59); }
.pay-icon { margin-right: 6px; }

.wetour-secure-note {
  text-align: center; font-size: 12px; color: var(--wt-muted);
  margin-top: 12px;
}

/* ── Processing Spinner ───────────────────────────────────────────────────── */
.wetour-processing {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px; gap: 20px;
  font-size: 15px; color: var(--wt-muted);
}

.wetour-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--wt-border);
  border-top-color: var(--wt-ocean);
  border-radius: 50%;
  animation: wt-spin 0.8s linear infinite;
}

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

/* ── Error ────────────────────────────────────────────────────────────────── */
.wetour-error-banner {
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 8px; padding: 12px 16px;
  color: #b91c1c; font-size: 13.5px; margin-top: 16px;
}

/* ── Confirmation ─────────────────────────────────────────────────────────── */
.wetour-confirm-card {
  background: var(--wt-white); border-radius: var(--wt-radius);
  box-shadow: var(--wt-shadow); padding: 48px 36px;
  text-align: center; border: 1px solid var(--wt-border);
  max-width: 560px; margin: 0 auto;
}

.wetour-confirm-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--wt-teal), var(--wt-ocean));
  color: #fff; font-size: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(14,138,120,0.3);
}

.wetour-confirm-icon.pending { background: #fbbf24; }
.wetour-confirm-icon.error   { background: #ef4444; }

.wetour-confirm-card h2 {
  font-family: var(--wt-display); font-size: 30px;
  color: var(--wt-ocean); margin: 0 0 12px;
}

.wetour-confirm-subtitle { color: var(--wt-muted); font-size: 15px; margin-bottom: 24px; }

.wetour-confirm-ref {
  display: inline-block;
  background: var(--wt-sand); border-radius: 8px;
  padding: 10px 24px; font-size: 15px; color: var(--wt-dark);
  margin-bottom: 28px;
}

.wetour-confirm-details { text-align: left; }
.cd-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--wt-border);
  font-size: 14px;
}
.cd-row:last-child { border-bottom: none; }
.cd-label { color: var(--wt-muted); }
.cd-value  { font-weight: 500; color: var(--wt-dark); }
.cd-total  { font-weight: 700; font-size: 16px; color: var(--wt-ocean); }
.cd-total .cd-value { color: var(--wt-ocean); font-size: 18px; }

.wetour-confirm-note { font-size: 13px; color: var(--wt-muted); margin-top: 20px; }

/* ── Lookup ───────────────────────────────────────────────────────────────── */
.wetour-lookup-card { max-width: 440px; margin: 0 auto; }
.wetour-lookup-card .wetour-field input { font-size: 18px; letter-spacing: 2px; text-transform: uppercase; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.wetour-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600; text-transform: capitalize;
}
.wetour-badge-confirmed  { background: #d1fae5; color: #065f46; }
.wetour-badge-pending    { background: #fef3c7; color: #92400e; }
.wetour-badge-awaiting_payment { background: #e0e7ff; color: #3730a3; }
.wetour-badge-cancelled  { background: #fee2e2; color: #991b1b; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .wetour-card { padding: 20px; }
  .wetour-form-grid { grid-template-columns: 1fr; }
  .wetour-tour-img { display: none; }
  .wetour-step .step-label { display: none; }
  .wetour-step-divider { width: 18px; }
  .wetour-pax-row { flex-wrap: wrap; }
  .wetour-actions { flex-direction: column-reverse; }
  .wetour-btn { width: 100%; text-align: center; }
}
