/* ── Střecha Budějc Booking — Frontend styles ──────────────────────────── */

.sbb-wrap {
  max-width: 860px;
  margin: 0 auto;
  font-family: inherit;
}

/* ── Mode toggle ─────────────────────────────────────────────────────────── */
.sbb-mode-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #1a1a1a;
}

.sbb-tab {
  flex: 1;
  padding: 14px 20px;
  background: #fff;
  color: #1a1a1a;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  letter-spacing: .02em;
}

.sbb-tab.active {
  background: #1a1a1a;
  color: #fff;
}

.sbb-tab:hover:not(.active) {
  background: #f4f4f0;
}

/* ── Section ─────────────────────────────────────────────────────────────── */
.sbb-section {
  margin-bottom: 32px;
}

.sbb-step-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0ede6;
}

.sbb-form-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
}

.sbb-intro {
  color: #666;
  margin: 0 0 28px;
}

/* ── Experience cards ────────────────────────────────────────────────────── */
.sbb-experience-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.sbb-exp-card {
  border: 2px solid #e8e6e0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  background: #fff;
}

.sbb-exp-card:hover {
  border-color: #aaa;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.sbb-exp-card.selected {
  border-color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.sbb-exp-thumb {
  height: 140px;
  background-size: cover;
  background-position: center;
}

.sbb-exp-info {
  padding: 14px 16px;
}

.sbb-exp-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}

.sbb-exp-desc {
  font-size: 13px;
  color: #666;
  margin: 0 0 10px;
  line-height: 1.5;
}

.sbb-exp-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  margin: 0;
}

.sbb-exp-duration { color: #888; }

.sbb-exp-price {
  font-weight: 700;
  color: #1a1a1a;
}

.sbb-exp-price small { font-weight: 400; color: #888; }

/* ── Label & Input ───────────────────────────────────────────────────────── */
.sbb-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #2c2c2c;
}

.sbb-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 2px solid #e8e6e0;
  border-radius: 8px;
  font-size: 15px;
  color: #1a1a1a;
  background: #fff;
  transition: border-color .2s;
  font-family: inherit;
}

.sbb-input:focus {
  outline: none;
  border-color: #1a1a1a;
}

.sbb-textarea {
  resize: vertical;
  min-height: 80px;
}

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

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

@media (max-width: 540px) {
  .sbb-form-grid { grid-template-columns: 1fr; }
}

/* ── Slots ───────────────────────────────────────────────────────────────── */
.sbb-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.sbb-slot {
  padding: 10px 18px;
  border: 2px solid #e8e6e0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .15s, background .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.sbb-slot:hover { border-color: #aaa; background: #f8f7f4; }

.sbb-slot.selected {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}

.sbb-slot.disabled {
  opacity: .4;
  cursor: not-allowed;
}

.sbb-slot-time { font-size: 16px; }
.sbb-slot-end  { font-size: 11px; font-weight: 400; opacity: .75; margin-top: 2px; }

/* ── Persons counter ─────────────────────────────────────────────────────── */
.sbb-persons-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sbb-qty-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.sbb-qty-btn:hover { background: #1a1a1a; color: #fff; }

.sbb-qty-input {
  width: 70px !important;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.sbb-price-preview {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.sbb-price-preview strong {
  font-size: 18px;
  color: #1a1a1a;
}

/* ── Booking summary ─────────────────────────────────────────────────────── */
.sbb-booking-summary {
  background: #f8f7f4;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.sbb-booking-summary h4 {
  margin: 0 0 14px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
}

.sbb-booking-summary table {
  width: 100%;
  border-collapse: collapse;
}

.sbb-booking-summary td {
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.sbb-booking-summary td:first-child { color: #888; width: 120px; }
.sbb-booking-summary td:last-child  { font-weight: 600; }
.sbb-sum-total td { border-bottom: none; font-size: 16px; padding-top: 12px; }

/* ── Voucher info box ────────────────────────────────────────────────────── */
.sbb-voucher-preview-box {
  background: #fff8ec;
  border-left: 4px solid #f5c842;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 24px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* ── Voucher badge ───────────────────────────────────────────────────────── */
.sbb-voucher-valid-badge {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 24px;
}

/* ── Code input ──────────────────────────────────────────────────────────── */
.sbb-code-input-row {
  display: flex;
  gap: 12px;
}

.sbb-code-input {
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.sbb-btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .1s;
  text-decoration: none;
  letter-spacing: .02em;
}

.sbb-btn:active { transform: scale(.98); }
.sbb-btn:disabled { opacity: .6; cursor: not-allowed; }

.sbb-btn-primary {
  background: #1a1a1a;
  color: #fff !important;
}

.sbb-btn-primary:hover:not(:disabled) { background: #333; }

/* ── Loader ──────────────────────────────────────────────────────────────── */
.sbb-loader {
  color: #888;
  font-size: 14px;
  padding: 12px 0;
}

.sbb-loader::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: sbb-spin .6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* ── Utility ─────────────────────────────────────────────────────────────── */
.sbb-hidden { display: none !important; }
.sbb-info   { font-size: 14px; color: #888; }
.sbb-error  { color: #c0392b; font-size: 14px; margin-top: 8px; }
.sbb-date-note {
  font-size: 13px;
  color: #666;
  margin: 6px 0 0;
  padding: 6px 10px;
  background: #fffbea;
  border-left: 3px solid #f5a623;
  border-radius: 0 4px 4px 0;
}

/* ── Thank you page ──────────────────────────────────────────────────────── */
.sbb-thank-you {
  text-align: center;
  padding: 60px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.sbb-ty-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.sbb-thank-you h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.sbb-thank-you p {
  font-size: 16px;
  color: #555;
  margin-bottom: 32px;
  line-height: 1.6;
}
