/* BinduBooking front end – map + popup wizard */
.bindu-booking { max-width: 100%; margin: 1.5em 0; }
.bindu-booking__map { border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; padding: 8px; box-sizing: border-box; }
.bindu-booking__legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 2px 4px; font-size: 13px; color: #4b5563; }
.bindu-booking__legend span { display: inline-flex; align-items: center; gap: 6px; }
.bindu-booking__help { margin: 4px 2px 0; font-size: 13px; color: #6b7280; }
.bb-lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 2px solid; box-sizing: border-box; }
.bb-lg--free { background: #ece8ff; border-color: #7a63f0; }
.bb-lg--sel { background: #5b3fe0; border-color: #5b3fe0; }
.bb-lg--off { background: #e5e7eb; border-color: #9ca3af; }
.bindu-booking-notice { padding: 10px 14px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; }
.bindu-booking__notice { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; font-weight: 600; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.bindu-booking__notice--paid { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.bindu-booking__notice--cancelled, .bindu-booking__notice--failed { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* Multi-select bar */
.bindu-booking__bar { position: sticky; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 14px; background: #111; color: #fff; border-radius: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); animation: bbUp .25s ease both; }
.bindu-booking__bar[hidden] { display: none; }
.bindu-booking__go { background: #fff; color: #111; border: 0; border-radius: 10px; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; }

/* Wizard */
html.bb-wz-lock { overflow: hidden; }
.bb-wz { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); animation: bbFade .2s ease both; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.bb-wz.is-closing { animation: bbFadeOut .2s ease both; }
.bb-wz.is-closing .bb-wz__card { animation: bbPopOut .2s ease both; }
.bb-wz *, .bb-wz *::before, .bb-wz *::after { box-sizing: border-box; }
.bb-wz__card { position: relative; width: min(600px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; color: #111827; border-radius: 18px; padding: 18px 20px 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); animation: bbPop .3s cubic-bezier(.2, .9, .3, 1.15) both; }
.bb-wz__head { display: flex; align-items: center; gap: 10px; padding-right: 30px; margin-bottom: 10px; min-height: 30px; }
.bb-wz__title { margin: 0; font-size: 15px; font-weight: 700; }
.bb-wz__chip { margin-left: 4px; padding: 3px 10px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 12px; color: #374151; background: #f9fafb; white-space: nowrap; }
.bb-wz__chip[hidden], .bb-wz__back[hidden] { display: none; }
.bb-wz__x { position: absolute; right: 12px; top: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; color: #6b7280; cursor: pointer; }
.bb-wz__x:hover, .bb-wz__back:hover { background: #f3f4f6; }
.bb-wz__back { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; font-size: 20px; cursor: pointer; color: #374151; padding: 0; }
.bb-wz__body { overflow-y: auto; overflow-x: hidden; min-height: 180px; padding: 2px 2px 6px; }
.bb-wz__pane.is-in-next { animation: bbNext .28s ease both; }
.bb-wz__pane.is-in-prev { animation: bbPrev .28s ease both; }
.bb-wz__h { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: #374151; }
.bb-wz__center { text-align: center; font-size: 18px; font-weight: 500; margin-bottom: 14px; }
.bb-wz__muted { margin: 6px 0; font-size: 13px; color: #6b7280; display: flex; align-items: center; gap: 8px; }
.bb-wz__cols { display: grid; grid-template-columns: 250px 1fr; gap: 18px; }
@media (max-width: 560px) { .bb-wz__cols { grid-template-columns: 1fr; } }
.bb-wz__len { display: block; margin-top: 10px; font-size: 12px; font-weight: 600; color: #374151; }
.bb-wz select, .bb-wz input, .bb-wz textarea { font: inherit; }
.bb-wz__len select { width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; }

/* Calendar */
.bb-cal { border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px; }
.bb-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
.bb-cal__nav { width: 28px; height: 28px; border: 1px solid #e5e7eb; border-radius: 50%; background: #fff; cursor: pointer; font-size: 16px; line-height: 1; padding: 0; color: #111; }
.bb-cal__nav:disabled { opacity: .35; cursor: default; }
.bb-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.bb-cal__dow { font-size: 11px; color: #6b7280; padding: 4px 0; }
.bb-cal__day { aspect-ratio: 1; min-height: 30px; border: 0; border-radius: 50%; background: transparent; font-size: 12px; cursor: pointer; color: #111827; padding: 0; transition: background .12s, transform .12s; }
.bb-cal__day:hover:not(:disabled) { background: #f3f4f6; transform: scale(1.06); }
.bb-cal__day:disabled { color: #c4c8cf; cursor: default; }
.bb-cal__day.is-today { box-shadow: inset 0 0 0 1.5px #111; }
.bb-cal__day.is-sel { background: #111; color: #fff; }

/* Times */
.bb-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 280px; overflow-y: auto; padding: 2px; align-content: start; }
@media (max-width: 560px) { .bb-times { grid-template-columns: repeat(3, 1fr); max-height: 200px; } }
.bb-times .bb-wz__muted { grid-column: 1 / -1; }
.bb-time { padding: 8px 0; border: 1px solid #e5e7eb; border-radius: 9px; background: #fff; font-size: 12px; cursor: pointer; color: #111827; transition: border-color .12s, background .12s; }
.bb-time:hover:not(:disabled) { border-color: #111; }
.bb-time:disabled { color: #c4c8cf; background: #f9fafb; text-decoration: line-through; cursor: default; }
.bb-time.is-sel { background: #111; border-color: #111; color: #fff; }

/* Options */
.bb-wz__party { max-width: 320px; margin: 0 auto; text-align: center; }
.bb-wz__party label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.bb-step { display: flex; align-items: center; justify-content: center; gap: 10px; }
.bb-step__b { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #d1d5db; background: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
.bb-step__b:hover { border-color: #111; }
.bb-step input { width: 70px; text-align: center; padding: 8px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 16px; -moz-appearance: textfield; }
.bb-step input::-webkit-outer-spin-button, .bb-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Contact */
.bb-field { display: block; margin-bottom: 10px; text-align: center; }
.bb-field span { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.bb-field input, .bb-field textarea { width: 100%; padding: 10px 40px 10px 12px; border: 1.5px solid #d1d5db; border-radius: 10px; background: #fff; text-align: left; }
.bb-field textarea { padding-right: 12px; resize: vertical; }
.bb-field input:focus, .bb-field textarea:focus { outline: 0; border-color: #111; }
.bb-field input.is-valid { border-color: #22c55e; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%2322c55e'/%3E%3Cpath d='M7 12.5l3.5 3.5L17 9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.bb-field input.is-invalid { border-color: #ef4444; background: #fff5f5; }
.bb-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #4b5563; cursor: pointer; margin-top: 6px; }
.bb-consent input { margin-top: 2px; }
.bb-consent.is-invalid { color: #b91c1c; }
.bb-wz__sum { margin: 12px 0 0; text-align: center; font-weight: 700; font-size: 14px; }

/* Footer */
.bb-wz__hint { min-height: 1.3em; margin: 6px 0 0; font-size: 13px; color: #b91c1c; text-align: center; }
.bb-wz__hint[hidden] { display: none; }
.bb-wz__dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0; }
.bb-wz__dots[hidden] { display: none; }
.bb-dot { width: 7px; height: 7px; border-radius: 999px; background: #d1d5db; transition: width .25s, background .25s; }
.bb-dot.is-on { width: 24px; background: #111; }
.bb-wz__cta { position: relative; width: 100%; padding: 14px; border: 0; border-radius: 12px; background: #111; color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s, transform .1s; }
.bb-wz__cta:hover:not(:disabled) { background: #2b2b2b; }
.bb-wz__cta:active:not(:disabled) { transform: scale(.99); }
.bb-wz__cta:disabled { background: #3a3a3a; cursor: default; }
.bb-wz__cta.is-loading { color: transparent; }
.bb-wz__cta.is-loading::after, .bb-spin { content: ""; display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: bbSpin .7s linear infinite; }
.bb-wz__cta.is-loading::after { position: absolute; left: calc(50% - 8px); top: calc(50% - 8px); }
.bb-spin { border-color: #d1d5db; border-top-color: #111; width: 14px; height: 14px; }

/* Success */
.bb-wz__ok { text-align: center; padding: 24px 10px 8px; }
.bb-wz__ok h3 { margin: 14px 0 6px; font-size: 20px; }
.bb-wz__ok p { margin: 0; color: #4b5563; font-size: 14px; }
.bb-ok { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #16a34a; display: flex; align-items: center; justify-content: center; animation: bbPopIn .45s cubic-bezier(.2, 1.4, .4, 1) both; }

@keyframes bbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bbFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes bbPop { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bbPopOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes bbPopIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes bbNext { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes bbPrev { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes bbUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bbSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.bb-wz, .bb-wz *, .bindu-booking__bar { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
