/* ============================================
   BOOKING & CALENDAR PLUGIN - MODERN UI
   Turo/Hotels.com-inspired design
   ============================================ */

/* CSS Variables */
:root {
  --bkg-primary: #593CFB;
  --bkg-primary-hover: #4930d9;
  --bkg-primary-light: #f0edff;
  --bkg-secondary: #00d4aa;
  --bkg-success: #22c55e;
  --bkg-warning: #f59e0b;
  --bkg-danger: #ef4444;
  --bkg-info: #3b82f6;
  --bkg-dark: #1a1a2e;
  --bkg-text: #334155;
  --bkg-text-light: #64748b;
  --bkg-text-lighter: #94a3b8;
  --bkg-border: #e2e8f0;
  --bkg-border-focus: #593CFB;
  --bkg-bg: #ffffff;
  --bkg-bg-light: #f8fafc;
  --bkg-bg-hover: #f1f5f9;
  --bkg-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --bkg-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --bkg-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --bkg-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --bkg-radius: 12px;
  --bkg-radius-sm: 8px;
  --bkg-radius-lg: 16px;
  --bkg-radius-xl: 24px;
  --bkg-transition: all 0.2s ease;
  --bkg-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Reset */
.bkg-body { font-family: var(--bkg-font); color: var(--bkg-text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.bkg-body a { text-decoration: none; color: var(--bkg-primary); transition: var(--bkg-transition); }
.bkg-body a:hover { color: var(--bkg-primary-hover); }
.bkg-body button { font-family: var(--bkg-font); }
.bkg-body * { box-sizing: border-box; }
.bkg-body .select-box, .bkg-body .selector select { left: auto; top: auto; position: initial; z-index: initial; border-radius: 0; background: transparent; box-shadow: none; border: none; text-shadow: none; color: inherit !important; overflow: visible; opacity: 1; }
.bkg-body .select-box select { left: auto; top: auto; -webkit-appearance: auto; z-index: 1; position: inherit; visibility: visible; opacity: 1 !important; }
.bkg-body .select-box .select-box-trigger { display: none !important; }
.bkg-body .selector { width: auto !important; height: auto !important; }
.bkg-body .selector span { display: none !important; }


/* ============================================
   HERO SEARCH BAR - Turo/Hotels.com style
   ============================================ */
/* ============================================
   HERO SEARCH BAR (Turo/Avis-inspired)
   ============================================ */
.bkg-hero-search {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 48px 20px 56px;
  position: relative;
  overflow: visible;
}

.bkg-hero-search::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.bkg-hero-search .bkg-hero-title {
  text-align: center;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.bkg-hero-search .bkg-hero-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  margin: 0 0 32px;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.bkg-search-container {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 100;
}

/* Main search bar pill */
.bkg-search-bar {
  background: var(--bkg-bg);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  padding: 8px 8px 8px 0;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

/* Search fields */
.bkg-search-field {
  padding: 12px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
  border-radius: 100px;
  transition: background 0.15s ease;
  min-width: 0;
}

.bkg-sf-location { flex: 1.4; }
.bkg-sf-date-from, .bkg-sf-date-to { flex: 1.3; }

.bkg-search-field:hover {
  background: var(--bkg-bg-hover);
}

.bkg-search-field.bkg-sf-active {
  background: var(--bkg-bg);
  box-shadow: 0 0 0 2px var(--bkg-primary);
}

/* Divider between fields */
.bkg-search-divider {
  width: 1px;
  height: 32px;
  background: var(--bkg-border);
  flex-shrink: 0;
  align-self: center;
}

/* Field labels */
.bkg-search-field .bkg-sf-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--bkg-text);
  margin: 0 0 3px;
}

/* Location field - icon + input row */
.bkg-sf-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bkg-sf-icon {
  width: 15px;
  height: 15px;
  color: var(--bkg-text-lighter);
  flex-shrink: 0;
}

.bkg-search-field input[type="text"] {
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--bkg-text);
  font-family: var(--bkg-font);
  outline: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.bkg-search-field input[type="text"]::placeholder {
  color: var(--bkg-text-lighter);
  font-weight: 400;
}

/* Date + Time inline row */
.bkg-sf-datetime-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.bkg-sf-date-part {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding-right: 10px;
  border-right: 1px solid var(--bkg-border);
  margin-right: 10px;
  flex-shrink: 0;
}

.bkg-sf-date-text {
  font-size: 15px;
  color: var(--bkg-text-lighter);
  white-space: nowrap;
  font-weight: 400;
}

.bkg-sf-date-text.has-value {
  color: var(--bkg-text);
  font-weight: 500;
}

.bkg-sf-time-part {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.bkg-sf-time-select {
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--bkg-text);
  font-family: var(--bkg-font);
  cursor: pointer;
  padding: 2px 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-weight: 400;
  min-width: 75px;
}

.bkg-sf-time-select:focus {
  color: var(--bkg-primary);
}

/* Search button - circle like Turo */
.bkg-search-btn {
  background: var(--bkg-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--bkg-transition);
  flex-shrink: 0;
  margin-left: 4px;
  padding: 0;
}

.bkg-search-btn:hover {
  background: var(--bkg-primary-hover);
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(89, 60, 251, 0.4);
}

.bkg-search-btn svg {
  width: 20px;
  height: 20px;
}

/* Secondary options row below the bar */
.bkg-search-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  position: relative;
  z-index: 1;
  gap: 12px;
  flex-wrap: wrap;
}

/* Passengers selector (below bar) */
.bkg-search-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  cursor: pointer;
  transition: var(--bkg-transition);
  position: relative;
  padding: 6px 12px;
  border-radius: var(--bkg-radius-xl);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}

.bkg-search-opt:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.bkg-search-opt svg {
  width: 14px;
  height: 14px;
}

.bkg-search-opt .bkg-chevron {
  width: 10px;
  height: 10px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.bkg-search-opt .bkg-passengers-count {
  font-weight: 600;
}

/* Quick location tags (inline with passengers) */
.bkg-search-opt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bkg-quick-loc {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--bkg-radius-xl);
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--bkg-transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bkg-quick-loc:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.bkg-quick-loc svg {
  width: 12px;
  height: 12px;
}

/* Location dropdown */
.bkg-location-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 420px;
  background: var(--bkg-bg);
  border-radius: var(--bkg-radius);
  box-shadow: var(--bkg-shadow-xl);
  z-index: 100;
  max-height: 380px;
  overflow-y: auto;
  display: none;
  border: 1px solid var(--bkg-border);
}

.bkg-location-dropdown.bkg-show { display: block; }

.bkg-loc-group {
  padding: 6px 0;
}

.bkg-loc-group-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--bkg-text-lighter);
  padding: 8px 16px 4px;
}

.bkg-loc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.bkg-loc-item:hover,
.bkg-loc-item.bkg-loc-active {
  background: var(--bkg-bg-hover);
}

.bkg-loc-item .bkg-loc-icon {
  width: 36px;
  height: 36px;
  background: var(--bkg-primary-light);
  border-radius: var(--bkg-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bkg-loc-item .bkg-loc-icon svg {
  width: 16px;
  height: 16px;
  color: var(--bkg-primary);
}

.bkg-loc-item .bkg-loc-icon.bkg-icon-airport { background: #dbeafe; }
.bkg-loc-item .bkg-loc-icon.bkg-icon-airport svg { color: #3b82f6; }
.bkg-loc-item .bkg-loc-icon.bkg-icon-train { background: #fef3c7; }
.bkg-loc-item .bkg-loc-icon.bkg-icon-train svg { color: #f59e0b; }
.bkg-loc-item .bkg-loc-icon.bkg-icon-hotel { background: #fce7f3; }
.bkg-loc-item .bkg-loc-icon.bkg-icon-hotel svg { color: #ec4899; }
.bkg-loc-item .bkg-loc-icon.bkg-icon-city { background: #e0e7ff; }
.bkg-loc-item .bkg-loc-icon.bkg-icon-city svg { color: #6366f1; }
.bkg-loc-item .bkg-loc-icon.bkg-icon-system { background: #dcfce7; }
.bkg-loc-item .bkg-loc-icon.bkg-icon-system svg { color: #16a34a; }

.bkg-loc-item .bkg-loc-info { flex: 1; min-width: 0; }
.bkg-loc-item .bkg-loc-name { font-size: 14px; font-weight: 500; color: var(--bkg-text); display: block; }
.bkg-loc-item .bkg-loc-detail { font-size: 12px; color: var(--bkg-text-lighter); display: block; }

/* Passengers dropdown */
.bkg-passengers-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bkg-bg);
  border-radius: var(--bkg-radius);
  box-shadow: var(--bkg-shadow-xl);
  z-index: 100;
  padding: 16px;
  margin-top: 6px;
  border: 1px solid var(--bkg-border);
  display: none;
}

.bkg-passengers-dropdown.bkg-show { display: block; }

.bkg-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.bkg-stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bkg-border);
  background: var(--bkg-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--bkg-transition);
  padding: 0;
}

.bkg-stepper-btn:hover:not(:disabled) {
  border-color: var(--bkg-primary);
  color: var(--bkg-primary);
}

.bkg-stepper-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.bkg-stepper-btn svg {
  width: 14px;
  height: 14px;
}

.bkg-stepper-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--bkg-text);
  min-width: 28px;
  text-align: center;
}


/* ============================================
   CALENDAR POPUP
   ============================================ */
.bkg-calendar-popup {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bkg-bg);
  border-radius: var(--bkg-radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
  z-index: 99999;
  display: none;
  border: 1px solid var(--bkg-border);
  overflow: visible;
}

.bkg-calendar-popup.bkg-show { display: block; }

/* Calendar header bar */
.bkg-cal-header-bar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--bkg-border);
  background: var(--bkg-bg-light);
}

.bkg-cal-selection-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bkg-cal-sel-from,
.bkg-cal-sel-to {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--bkg-radius-sm);
  border: 2px solid var(--bkg-border);
  cursor: pointer;
  transition: var(--bkg-transition);
}

.bkg-cal-sel-from:hover,
.bkg-cal-sel-to:hover {
  border-color: var(--bkg-text-lighter);
}

.bkg-cal-sel-from.bkg-cal-sel-active,
.bkg-cal-sel-to.bkg-cal-sel-active {
  border-color: var(--bkg-primary);
  background: var(--bkg-primary-light);
}

.bkg-cal-sel-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bkg-text-lighter);
  margin-bottom: 2px;
}

.bkg-cal-sel-date {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--bkg-text);
}

.bkg-cal-sel-arrow {
  flex-shrink: 0;
  color: var(--bkg-text-lighter);
}

.bkg-cal-sel-arrow svg {
  width: 14px;
  height: 14px;
}

/* Calendar navigation */
.bkg-cal-nav {
  display: flex;
  justify-content: space-between;
  padding: 12px 24px 0;
}

.bkg-cal-nav-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--bkg-border);
  background: var(--bkg-bg);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--bkg-transition);
  padding: 0;
}

.bkg-cal-nav-btn:hover {
  background: var(--bkg-bg-hover);
  border-color: var(--bkg-text-lighter);
}

.bkg-cal-nav-btn svg {
  width: 14px;
  height: 14px;
  color: var(--bkg-text);
}

/* Calendar months container */
.bkg-cal-months {
  display: flex;
  gap: 32px;
  padding: 8px 24px 16px;
  justify-content: center;
}

.bkg-cal-month {
  flex: 1;
  min-width: 0;
  max-width: 320px;
}

.bkg-cal-month-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--bkg-text);
  padding: 12px 0 8px;
}

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

.bkg-cal-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--bkg-text-lighter);
  text-transform: uppercase;
  padding: 6px 0;
}

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

.bkg-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
  font-size: 14px;
}

.bkg-cal-day-num {
  position: relative;
  z-index: 1;
  pointer-events: none; /* Ensure clicks pass through to parent .bkg-cal-day for jQuery delegation */
}

.bkg-cal-day-empty {
  cursor: default;
}

.bkg-cal-day:not(.bkg-cal-day-empty):not(.bkg-cal-day-disabled):hover {
  background: var(--bkg-bg-hover);
}

/* Today */
.bkg-cal-day-today {
  font-weight: 700;
}

.bkg-cal-day-today .bkg-cal-day-num {
  border-bottom: 2px solid var(--bkg-primary);
  padding-bottom: 1px;
}

/* Disabled dates */
.bkg-cal-day-disabled {
  color: var(--bkg-text-lighter);
  opacity: 0.4;
  cursor: not-allowed;
}

/* Selected dates */
.bkg-cal-day-selected {
  background: var(--bkg-primary) !important;
  color: #fff !important;
  font-weight: 600;
}

.bkg-cal-day-range-start {
  border-radius: 50% 0 0 50%;
}

.bkg-cal-day-range-end {
  border-radius: 0 50% 50% 0;
}

.bkg-cal-day-range-start.bkg-cal-day-range-end {
  border-radius: 50%;
}

/* In range */
.bkg-cal-day-in-range {
  background: var(--bkg-primary-light);
  border-radius: 0;
  color: var(--bkg-primary);
}

/* Hover range preview */
.bkg-cal-day-hover-range {
  background: rgba(89, 60, 251, 0.06);
  border-radius: 0;
}

.bkg-cal-day-hover-end {
  background: rgba(89, 60, 251, 0.12);
  border-radius: 0 50% 50% 0;
}

/* Calendar footer */
.bkg-cal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-top: 1px solid var(--bkg-border);
  background: var(--bkg-bg-light);
}

.bkg-cal-clear {
  background: none;
  border: none;
  color: var(--bkg-text-light);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--bkg-radius-sm);
  transition: var(--bkg-transition);
  font-family: var(--bkg-font);
}

.bkg-cal-clear:hover {
  background: var(--bkg-bg-hover);
  color: var(--bkg-text);
}

.bkg-cal-done {
  background: var(--bkg-primary);
  color: #fff;
  border: none;
  border-radius: var(--bkg-radius-sm);
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--bkg-transition);
  font-family: var(--bkg-font);
}

.bkg-cal-done:hover {
  background: var(--bkg-primary-hover);
}

/* Shake animation for validation */
@keyframes bkgShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.bkg-sf-shake {
  animation: bkgShake 0.5s ease-in-out;
}


/* ============================================
   SIDEBAR SEARCH FILTERS (classic fallback)
   ============================================ */
#bkg-search { display: inline-block; width: 100%; }
#bkg-search .bkg-row { display: inline-block; width: 100%; margin: 0 0 14px 0; }
#bkg-search .bkg-row.checkboxes { margin: 0 0 8px 0; }
#bkg-search .bkg-row .input-box-check,
#bkg-search .bkg-row .input-box { display: inline-block; width: 100%; margin: 0; }
#bkg-search .bkg-row.checkboxes:last-child,
#bkg-search .bkg-row:last-child { margin-bottom: 0; }

#bkg-search label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--bkg-text);
  margin: 0 0 4px;
}

#bkg-search input[type="date"],
#bkg-search input[type="text"],
#bkg-search input[type="number"],
#bkg-search select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  margin: 0;
  line-height: 40px;
  border: 2px solid var(--bkg-border);
  border-radius: var(--bkg-radius-sm);
  font-size: 14px;
  font-family: var(--bkg-font);
  color: var(--bkg-text);
  background: var(--bkg-bg);
  transition: var(--bkg-transition);
  outline: none;
}

#bkg-search input:focus,
#bkg-search select:focus {
  border-color: var(--bkg-border-focus);
  box-shadow: 0 0 0 3px rgba(89, 60, 251, 0.1);
}

#bkg-search input#bkgAvailabilityFrom { margin-bottom: 6px; }

#bkg-search input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: var(--bkg-primary);
  cursor: pointer;
  vertical-align: middle;
}

#bkg-search .input-box-check {
  display: flex !important;
  align-items: center;
}

#bkg-search .input-box-check label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
  font-size: 14px;
}


/* ============================================
   BOOKING OPTIONS - ITEM DETAIL PAGE
   ============================================ */
#bkg-item {
  margin: 24px 0;
}

#bkg-item .bkg-header {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--bkg-dark);
  margin: 0 0 20px;
  letter-spacing: -0.3px;
}

.bkg-opts { display: flex; flex-direction: column; gap: 16px; }

.bkg-opt {
  background: var(--bkg-bg);
  border: 2px solid var(--bkg-border);
  border-radius: var(--bkg-radius);
  overflow: hidden;
  transition: var(--bkg-transition);
}

.bkg-opt:hover {
  border-color: #cbd5e1;
  box-shadow: var(--bkg-shadow);
}

.bkg-opt .bkg-top {
  padding: 20px 24px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bkg-opt .bkg-item-header {
  font-size: 18px;
  font-weight: 700;
  color: var(--bkg-dark);
  display: block;
  letter-spacing: -0.2px;
}

.bkg-opt .bkg-item-summary {
  font-size: 14px;
  color: var(--bkg-text-light);
  display: block;
  line-height: 1.5;
}

.bkg-opt .bkg-item-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

.bkg-opt .bkg-item-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--bkg-text-light);
  background: var(--bkg-bg-light);
  border: 1px solid var(--bkg-border);
  border-radius: var(--bkg-radius-xl);
  padding: 4px 12px;
}

.bkg-opt .bkg-item-features span svg {
  width: 14px;
  height: 14px;
  color: var(--bkg-primary);
}

.bkg-opt .bkg-item-pwrap {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.bkg-opt .bkg-item-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--bkg-primary);
  letter-spacing: -0.5px;
}

.bkg-opt .bkg-item-price-old {
  font-size: 16px;
  color: var(--bkg-text-lighter);
  text-decoration: line-through;
}

.bkg-opt .bkg-item-price-label {
  font-size: 13px;
  color: var(--bkg-text-light);
  font-weight: 400;
}

.bkg-opt .bkg-item-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--bkg-text-lighter);
  transition: var(--bkg-transition);
}

.bkg-opt.bkg-expanded .bkg-item-icon {
  transform: rotate(180deg);
}

/* Booking option bottom/detail */
.bkg-opt .bkg-bot {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--bkg-border);
}

.bkg-opt.bkg-expanded .bkg-bot {
  display: block;
}

.bkg-opt .bkg-desc-header {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--bkg-dark);
  margin: 20px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}

.bkg-opt .bkg-box {
  font-size: 14px;
  color: var(--bkg-text);
  line-height: 1.7;
}

.bkg-opt .bkg-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bkg-opt .bkg-box ul li {
  padding: 4px 0 4px 24px;
  position: relative;
}

.bkg-opt .bkg-box ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--bkg-secondary);
  border-radius: 50%;
}

/* Option tabs (conditions, etc) */
.bkg-option-nav {
  display: flex;
  gap: 0;
  margin-top: 20px;
  border-bottom: 2px solid var(--bkg-border);
}

.bkg-option-nav a {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bkg-text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--bkg-transition);
}

.bkg-option-nav a:hover,
.bkg-option-nav a.active {
  color: var(--bkg-primary);
  border-bottom-color: var(--bkg-primary);
}

.bkg-option-tabs { margin-top: 16px; }
.bkg-option-tab { display: none; font-size: 14px; color: var(--bkg-text); line-height: 1.7; }
.bkg-option-tab.active { display: block; }

/* Bottom buttons */
.bkg-bottom-buttons {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bkg-border);
}


/* ============================================
   BUTTONS
   ============================================ */
.bkg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--bkg-radius-sm);
  cursor: pointer;
  transition: var(--bkg-transition);
  font-family: var(--bkg-font);
  text-decoration: none;
  line-height: 1.4;
}

.bkg-btn,
a.bkg-btn {
  background: var(--bkg-primary);
  color: #fff !important;
}

.bkg-btn:hover,
a.bkg-btn:hover {
  background: var(--bkg-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--bkg-shadow);
}

.bkg-btn.bkg-disabled,
.bkg-btn:disabled {
  background: var(--bkg-border) !important;
  color: var(--bkg-text-lighter) !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.bkg-btn-cancel,
a.bkg-btn-cancel {
  background: transparent !important;
  color: var(--bkg-danger) !important;
  border: 2px solid var(--bkg-danger);
}

.bkg-btn-cancel:hover,
a.bkg-btn-cancel:hover {
  background: #fef2f2 !important;
}

.bkg-btn-pay,
a.bkg-btn-pay {
  background: var(--bkg-success) !important;
  color: #fff !important;
}

.bkg-btn-pay:hover,
a.bkg-btn-pay:hover {
  background: #16a34a !important;
}

.bkg-btn-approve,
a.bkg-btn-approve {
  background: var(--bkg-success) !important;
  color: #fff !important;
}

.bkg-btn-approve:hover,
a.bkg-btn-approve:hover {
  background: #16a34a !important;
}

.bkg-btn-decline,
a.bkg-btn-decline {
  background: transparent !important;
  color: var(--bkg-danger) !important;
  border: 2px solid var(--bkg-danger);
}

.bkg-btn-decline:hover,
a.bkg-btn-decline:hover {
  background: #fef2f2 !important;
}

.bkg-btn-rate,
a.bkg-btn-rate {
  background: var(--bkg-warning) !important;
  color: #fff !important;
}

.bkg-btn-login,
a.bkg-btn-login {
  background: var(--bkg-primary);
  color: #fff !important;
  margin-top: 12px;
}


/* ============================================
   AVAILABILITY CALENDAR
   ============================================ */
#bkg-ical {
  display: inline-block;
  width: 100%;
  padding: 24px;
  border: 2px solid var(--bkg-border);
  border-radius: var(--bkg-radius);
  margin: 0 0 24px 0;
  background: var(--bkg-bg);
}

#bkg-ical .bkg-ical-head {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--bkg-dark);
  margin: 0 0 4px;
}

#bkg-ical .bkg-ical-subhead {
  font-size: 14px;
  color: var(--bkg-text-light);
  margin: 0 0 16px;
}

#bkg-ical select.bkg-change-opt {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 2px solid var(--bkg-border);
  border-radius: var(--bkg-radius-sm);
  font-size: 14px;
  font-family: var(--bkg-font);
  color: var(--bkg-text);
  background: var(--bkg-bg);
  margin-bottom: 16px;
  outline: none;
  transition: var(--bkg-transition);
}

#bkg-ical select.bkg-change-opt:focus {
  border-color: var(--bkg-border-focus);
}

.bkg-ical-box { display: none; }

/* Calendar wrapper */
.bkg-calendar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  user-select: none;
}

.bkg-calendar.bkg-one-month .bkg-month { width: 100%; }

.bkg-month {
  flex: 1;
  min-width: 280px;
}

.bkg-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bkg-month-header .bkg-month-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bkg-dark);
}

.bkg-month-header .bkg-month-nav {
  display: flex;
  gap: 4px;
}

.bkg-month-header .bkg-month-nav a {
  width: 32px;
  height: 32px;
  border-radius: var(--bkg-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bkg-text-light);
  transition: var(--bkg-transition);
}

.bkg-month-header .bkg-month-nav a:hover {
  background: var(--bkg-bg-hover);
  color: var(--bkg-text);
}

/* Calendar grid */
.bkg-grid { width: 100%; }
.bkg-grid .bkg-head { display: flex; }
.bkg-grid .bkg-row-week { display: flex; }

.bkg-grid .bkg-head .bkg-day-name {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--bkg-text-lighter);
  text-transform: uppercase;
  padding: 8px 0;
}

.bkg-grid .bkg-day {
  flex: 1;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: var(--bkg-radius-sm);
  cursor: pointer;
  transition: var(--bkg-transition);
  position: relative;
  color: var(--bkg-text);
}

.bkg-grid .bkg-day:hover:not(.bkg-disabled):not(.bkg-empty) {
  background: var(--bkg-primary-light);
  color: var(--bkg-primary);
}

.bkg-grid .bkg-day.bkg-empty {
  cursor: default;
}

.bkg-grid .bkg-day.bkg-today {
  font-weight: 700;
  color: var(--bkg-primary);
}

.bkg-grid .bkg-day.bkg-today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--bkg-primary);
  border-radius: 50%;
}

.bkg-grid .bkg-day.bkg-disabled {
  color: var(--bkg-text-lighter);
  cursor: not-allowed;
  text-decoration: line-through;
}

.bkg-grid .bkg-day.bkg-unavailable {
  color: var(--bkg-text-lighter);
  cursor: not-allowed;
  background: #fef2f2;
}

.bkg-grid .bkg-day.bkg-past {
  color: #d1d5db;
  cursor: not-allowed;
}

/* Calendar status colors */
.bkg-grid .bkg-day.bkg-green {
  background: #dcfce7;
  color: #166534;
}

.bkg-grid .bkg-day.bkg-orange {
  background: #fef3c7;
  color: #92400e;
}

.bkg-grid .bkg-day.bkg-red {
  background: #fecaca;
  color: #991b1b;
}

/* Selected range */
.bkg-grid .bkg-day.bkg-selected {
  background: var(--bkg-primary) !important;
  color: #fff !important;
  border-radius: var(--bkg-radius-sm);
  font-weight: 600;
}

.bkg-grid .bkg-day.bkg-in-range {
  background: var(--bkg-primary-light);
  color: var(--bkg-primary);
  border-radius: 0;
}

.bkg-grid .bkg-day.bkg-range-start {
  border-radius: var(--bkg-radius-sm) 0 0 var(--bkg-radius-sm);
}

.bkg-grid .bkg-day.bkg-range-end {
  border-radius: 0 var(--bkg-radius-sm) var(--bkg-radius-sm) 0;
}

/* Calendar legend */
.bkg-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--bkg-border);
}

.bkg-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--bkg-text-light);
}

.bkg-legend-color {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.bkg-legend-color.bkg-lg-green { background: #dcfce7; border: 1px solid #86efac; }
.bkg-legend-color.bkg-lg-orange { background: #fef3c7; border: 1px solid #fcd34d; }
.bkg-legend-color.bkg-lg-red { background: #fecaca; border: 1px solid #fca5a5; }
.bkg-legend-color.bkg-lg-selected { background: var(--bkg-primary); }


/* ============================================
   TIME SLOTS
   ============================================ */
.bkg-day-times {
  margin-top: 16px;
  background: var(--bkg-bg-light);
  border-radius: var(--bkg-radius);
  padding: 16px;
  border: 1px solid var(--bkg-border);
  position: relative;
}

.bkg-day-times .bkg-tclose {
  position: absolute;
  top: 12px;
  right: 12px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bkg-radius-sm);
  color: var(--bkg-text-lighter);
  transition: var(--bkg-transition);
}

.bkg-day-times .bkg-tclose:hover {
  background: var(--bkg-bg-hover);
  color: var(--bkg-text);
}

.bkg-day-times .bkg-time-head {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--bkg-dark);
  margin: 0 0 12px;
}

.bkg-time-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bkg-line-entry { display: inline-block; }

.bkg-time {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--bkg-radius-sm);
  border: 2px solid var(--bkg-border);
  color: var(--bkg-text);
  background: var(--bkg-bg);
  transition: var(--bkg-transition);
  text-decoration: none;
}

.bkg-time:hover:not(.bkg-disabled) {
  border-color: var(--bkg-primary);
  color: var(--bkg-primary);
  background: var(--bkg-primary-light);
}

.bkg-time.bkg-tstat-green { border-color: #86efac; background: #dcfce7; color: #166534; }
.bkg-time.bkg-tstat-orange { border-color: #fcd34d; background: #fef3c7; color: #92400e; }
.bkg-time.bkg-tstat-red { border-color: #fca5a5; background: #fecaca; color: #991b1b; opacity: 0.6; cursor: not-allowed; }
.bkg-time.bkg-tstat-white { border-color: var(--bkg-border); }
.bkg-time.bkg-selected { border-color: var(--bkg-primary) !important; background: var(--bkg-primary) !important; color: #fff !important; }


/* ============================================
   RESERVATION FORM
   ============================================ */
#bkg-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  background: var(--bkg-bg);
  border-radius: var(--bkg-radius-lg);
  border: 2px solid var(--bkg-border);
}

#bkg-form .bkg-fheader {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--bkg-dark);
  margin: 0 0 24px;
  letter-spacing: -0.3px;
}

#bkg-form .bkg-user-nonlogged {
  font-size: 14px;
  color: var(--bkg-text-light);
  padding: 16px;
  background: var(--bkg-bg-light);
  border-radius: var(--bkg-radius-sm);
  text-align: center;
  margin-bottom: 12px;
}

/* User info */
#bkg-form .bkg-active-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bkg-bg-light);
  border-radius: var(--bkg-radius);
  margin-bottom: 20px;
  border: 1px solid var(--bkg-border);
}

#bkg-form .bkg-user-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

#bkg-form .bkg-user-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

#bkg-form .bkg-user-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#bkg-form .bkg-user-data {
  font-size: 14px;
  color: var(--bkg-text);
  font-weight: 500;
}

#bkg-form .bkg-user-change {
  font-size: 13px;
  font-weight: 600;
  color: var(--bkg-primary);
}

/* Bookout box */
#bkg-form .bkg-bookout-box {
  padding: 16px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--bkg-radius-sm);
  margin-bottom: 20px;
}

/* Form sections */
#bkg-form .bkg-section-user {
  display: none;
  margin-bottom: 20px;
}

#bkg-form .bkg-box {
  margin-bottom: 16px;
}

#bkg-form .bkg-box.bkg-full { width: 100%; }
#bkg-form .bkg-box.bkg-left { width: calc(50% - 8px); float: left; }
#bkg-form .bkg-box.bkg-right { width: calc(50% - 8px); float: right; }

#bkg-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--bkg-text);
  margin: 0 0 6px;
}

#bkg-form .bkg-input-box input[type="text"],
#bkg-form .bkg-input-box input[type="number"],
#bkg-form .bkg-input-box textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--bkg-border);
  border-radius: var(--bkg-radius-sm);
  font-size: 14px;
  font-family: var(--bkg-font);
  color: var(--bkg-text);
  background: var(--bkg-bg);
  outline: none;
  transition: var(--bkg-transition);
}

#bkg-form .bkg-input-box input:focus,
#bkg-form .bkg-input-box textarea:focus {
  border-color: var(--bkg-border-focus);
  box-shadow: 0 0 0 3px rgba(89, 60, 251, 0.1);
}

#bkg-form .bkg-input-box textarea {
  min-height: 80px;
  resize: vertical;
}

/* Form rows */
#bkg-form .bkg-row {
  margin-bottom: 20px;
  clear: both;
}

#bkg-form .bkg-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--bkg-text);
  margin-bottom: 6px;
}

#bkg-form .bkg-val {
  font-size: 14px;
  color: var(--bkg-text);
}

/* Price display */
#bkg-form .bkg-row-unit-price .bkg-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--bkg-primary);
}

#bkg-form .bkg-row-unit-price .bkg-val span {
  font-size: 13px;
  font-weight: 400;
  color: var(--bkg-text-light);
  margin-left: 6px;
}

#bkg-form .bkg-row-total-price .bkg-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--bkg-primary);
}

/* Selected slot display */
#bkg-form .bkg-time-day-sel {
  background: var(--bkg-primary-light);
  padding: 14px 16px;
  border-radius: var(--bkg-radius-sm);
  border: 1px solid rgba(89, 60, 251, 0.2);
}

#bkg-form .bkg-time-day-sel .bkg-input-box span {
  font-size: 15px;
  font-weight: 600;
  color: var(--bkg-primary);
}

#bkg-form .bkg-buttons-row {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--bkg-border);
}

#bkg-form .bkg-make-res {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: var(--bkg-radius);
}


/* ============================================
   RESERVATIONS LIST / MANAGEMENT PAGES
   ============================================ */
.bkg-reservations,
.bkg-management {
  max-width: 900px;
  margin: 0 auto;
}

/* Navigation tabs */
.bkg-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--bkg-border);
  margin-bottom: 24px;
}

.bkg-nav a {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bkg-text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--bkg-transition);
  text-decoration: none;
}

.bkg-nav a:hover {
  color: var(--bkg-text);
}

.bkg-nav a.active {
  color: var(--bkg-primary);
  border-bottom-color: var(--bkg-primary);
}

/* Tab notification badges */
.bkg-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  line-height: 1;
  vertical-align: middle;
}
.bkg-tab-badge-pending { background: #fef3c7; color: #92400e; }
.bkg-tab-badge-confirmed { background: #d1fae5; color: #065f46; }

/* Sidebar notification badge */
.bkg-sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  background: #ef4444;
  color: #fff;
  margin-left: 6px;
  vertical-align: middle;
}

/* Unseen reservation indicator dot */
.bkg-unseen-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  margin-left: 8px;
  vertical-align: middle;
}

/* Sub line info */
.bkg-sub-line {
  font-size: 14px;
  color: var(--bkg-text-light);
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bkg-bg-light);
  border-radius: var(--bkg-radius-sm);
}

/* Filters */
.bkg-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.bkg-filters select.bkg-res-type {
  height: 40px;
  padding: 0 12px;
  border: 2px solid var(--bkg-border);
  border-radius: var(--bkg-radius-sm);
  font-size: 14px;
  font-family: var(--bkg-font);
  color: var(--bkg-text);
  outline: none;
  background: var(--bkg-bg);
  cursor: pointer;
  transition: var(--bkg-transition);
}

.bkg-filters select:focus {
  border-color: var(--bkg-border-focus);
}

/* List/grid toggle */
.bkg-list-grid {
  display: flex;
  gap: 4px;
}

.bkg-list-grid .bkg-lg {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bkg-radius-sm);
  color: var(--bkg-text-lighter);
  transition: var(--bkg-transition);
}

.bkg-list-grid .bkg-lg:hover,
.bkg-list-grid .bkg-lg.bkg-active {
  background: var(--bkg-primary-light);
  color: var(--bkg-primary);
}

.bkg-list-grid svg { width: 18px; height: 18px; }

/* Empty states */
.bkg-empty,
.bkg-empty-status {
  text-align: center;
  padding: 48px 24px;
  color: var(--bkg-text-lighter);
  font-size: 15px;
}

.bkg-empty-status { display: none; }

/* Reservation card */
.bkg-res {
  border: 2px solid var(--bkg-border);
  border-radius: var(--bkg-radius);
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--bkg-bg);
  transition: var(--bkg-transition);
}

.bkg-res:hover {
  border-color: #cbd5e1;
  box-shadow: var(--bkg-shadow-sm);
}

/* Item preview in reservation */
.bkg-res .bkg-itm {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  flex-wrap: wrap;
}

.bkg-res .bkg-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--bkg-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.bkg-res .bkg-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bkg-res .bkg-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bkg-dark);
  flex: 1;
  min-width: 200px;
}

.bkg-res .bkg-item-title:hover {
  color: var(--bkg-primary);
}

.bkg-res .bkg-item-data {
  font-size: 12px;
  color: var(--bkg-text-light);
  width: 100%;
  margin-top: -8px;
  padding-left: 72px;
}

.bkg-res .bkg-item-data strong {
  font-weight: 600;
  color: var(--bkg-text);
}

.bkg-res .bkg-item-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bkg-primary);
  flex-shrink: 0;
}

/* Option data */
.bkg-res .bkg-opt-data {
  padding: 14px 20px;
  background: var(--bkg-bg-light);
  border-top: 1px solid var(--bkg-border);
  border-bottom: 1px solid var(--bkg-border);
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.bkg-res .bkg-opt-data strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--bkg-dark);
  margin-right: 12px;
}

.bkg-res .bkg-opt-data > span {
  font-size: 13px;
  color: var(--bkg-text-light);
  flex: 1;
}

.bkg-res .bkg-show-hide {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bkg-text-lighter);
  transition: var(--bkg-transition);
  flex-shrink: 0;
}

.bkg-res .bkg-show-hide svg {
  width: 16px;
  height: 16px;
}

.bkg-res.bkg-expanded .bkg-show-hide {
  transform: rotate(180deg);
}

/* Reservation details */
.bkg-res .bkg-bot {
  display: none;
  padding: 16px 20px;
}

.bkg-res.bkg-expanded .bkg-bot {
  display: block;
}

/* In list view, show bot by default */
.bkg-list .bkg-res .bkg-bot { display: block; }

.bkg-res .bkg-el {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--bkg-border);
}

.bkg-res .bkg-el:last-child { border-bottom: none; }

.bkg-res .bkg-el strong {
  font-weight: 600;
  color: var(--bkg-text);
  min-width: 100px;
  flex-shrink: 0;
  font-size: 13px;
}

.bkg-res .bkg-el span { color: var(--bkg-text-light); }

/* Status badges */
.bkg-st-PENDING {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--bkg-radius-xl);
  background: #fef3c7;
  color: #92400e;
}

.bkg-st-CONFIRMED {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--bkg-radius-xl);
  background: #dcfce7;
  color: #166534;
}

.bkg-st-CANCELLED {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--bkg-radius-xl);
  background: #fecaca;
  color: #991b1b;
}

.bkg-st-DECLINED {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--bkg-radius-xl);
  background: #fde2e2;
  color: #991b1b;
}

.bkg-st-PAID {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--bkg-radius-xl);
  background: #dbeafe;
  color: #1e40af;
}

.bkg-st-BOOKOUT {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--bkg-radius-xl);
  background: #e5e7eb;
  color: #374151;
}

/* Action buttons */
.bkg-res .bkg-buts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--bkg-border);
}

/* Rating */
.bkg-res .bkg-rat {
  padding: 16px 20px;
  background: #fefce8;
  border-top: 1px solid #fde68a;
}

.bkg-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.bkg-star {
  width: 24px;
  height: 24px;
  color: #d1d5db;
  cursor: pointer;
  transition: var(--bkg-transition);
}

.bkg-star svg { width: 100%; height: 100%; }

.bkg-star.bkg-star-active {
  color: #f59e0b;
}

.bkg-comment {
  font-size: 14px;
  color: var(--bkg-text);
  font-style: italic;
}

/* Rating form */
.bkg-rat-form {
  display: none;
  padding: 16px 20px;
  background: var(--bkg-bg-light);
  border-top: 1px solid var(--bkg-border);
}

.bkg-rat-form .bkg-rating-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.bkg-rat-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--bkg-border);
  border-radius: var(--bkg-radius-sm);
  font-size: 14px;
  font-family: var(--bkg-font);
  min-height: 80px;
  resize: vertical;
  outline: none;
  transition: var(--bkg-transition);
}

.bkg-rat-form textarea:focus {
  border-color: var(--bkg-border-focus);
  box-shadow: 0 0 0 3px rgba(89, 60, 251, 0.1);
}

.bkg-rat-form .bkg-buttons-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}


/* ============================================
   ITEM POST/EDIT FORM
   ============================================ */
#bkg-post {
  margin: 24px 0;
  padding: 24px;
  background: var(--bkg-bg);
  border: 2px solid var(--bkg-border);
  border-radius: var(--bkg-radius);
}

#bkg-post .bkg-header {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--bkg-dark);
  margin: 0 0 6px;
}

#bkg-post .bkg-subline {
  font-size: 14px;
  color: var(--bkg-text-light);
  margin: 0 0 20px;
}

/* Enable toggle */
#bkg-post .bkg-enable-row {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bkg-bg-light);
  border-radius: var(--bkg-radius-sm);
  border: 1px solid var(--bkg-border);
}

/* Checkbox rows */
.bkg-row-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.bkg-row-check:last-child { margin-bottom: 0; }

.bkg-row-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--bkg-primary);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.bkg-row-check label {
  cursor: pointer;
}

.bkg-row-check label strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--bkg-dark);
  margin-bottom: 2px;
}

.bkg-row-check label span {
  display: block;
  font-size: 13px;
  color: var(--bkg-text-light);
  line-height: 1.5;
}

/* Edit option blocks */
.bkg-eopt {
  border: 2px solid var(--bkg-border);
  border-radius: var(--bkg-radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--bkg-transition);
}

.bkg-eopt:hover {
  border-color: #cbd5e1;
}

.bkg-eopt .bkg-lead {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
}

.bkg-eopt .bkg-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bkg-dark);
}

.bkg-eopt .bkg-summary {
  font-size: 13px;
  color: var(--bkg-text-light);
  margin-left: 12px;
}

.bkg-eopt .bkg-item-icon {
  position: absolute;
  right: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.bkg-eopt .bkg-item-icon a { color: var(--bkg-danger); }

.bkg-eopt .bkg-data {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--bkg-border);
}

.bkg-eopt.bkg-expanded .bkg-data {
  display: block;
}

/* Form rows inside option */
#bkg-post .bkg-row {
  margin-bottom: 16px;
}

#bkg-post .bkg-row > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--bkg-text);
  margin: 0 0 6px;
}

#bkg-post .bkg-input-box input[type="text"],
#bkg-post .bkg-input-box input[type="number"],
#bkg-post .bkg-input-box select,
#bkg-post .bkg-input-box textarea,
#bkg-post .bkg-input-box-date input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--bkg-border);
  border-radius: var(--bkg-radius-sm);
  font-size: 14px;
  font-family: var(--bkg-font);
  color: var(--bkg-text);
  background: var(--bkg-bg);
  outline: none;
  transition: var(--bkg-transition);
}

#bkg-post .bkg-input-box input:focus,
#bkg-post .bkg-input-box select:focus,
#bkg-post .bkg-input-box textarea:focus,
#bkg-post .bkg-input-box-date input:focus {
  border-color: var(--bkg-border-focus);
  box-shadow: 0 0 0 3px rgba(89, 60, 251, 0.1);
}

#bkg-post .bkg-input-box textarea {
  min-height: 80px;
  resize: vertical;
}

#bkg-post .bkg-input-help {
  font-size: 12px;
  color: var(--bkg-text-lighter);
  margin-top: 4px;
}

#bkg-post .bkg-input-box-date {
  display: inline-block;
  width: calc(50% - 6px);
  margin-right: 6px;
}

#bkg-post .bkg-input-box-date:last-child {
  margin-right: 0;
  margin-left: 6px;
}

/* Availability rows */
#bkg-post .bkg-avls { margin-top: 8px; }

#bkg-post .bkg-avl-box .bkg-lrow {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

#bkg-post .bkg-avl-box .bkg-lrow strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--bkg-text-lighter);
  text-transform: uppercase;
}

#bkg-post .bkg-avl-box .bkg-ac-1 { flex: 2; }
#bkg-post .bkg-avl-box .bkg-ac-2 { flex: 2; }
#bkg-post .bkg-avl-box .bkg-ac-3 { flex: 3; }
#bkg-post .bkg-avl-box .bkg-ac-4 { flex: 1; }

#bkg-post .bkg-avl-box .bkg-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

#bkg-post .bkg-avl-box .bkg-row input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 2px solid var(--bkg-border);
  border-radius: var(--bkg-radius-sm);
  font-size: 13px;
  font-family: var(--bkg-font);
  outline: none;
  transition: var(--bkg-transition);
}

#bkg-post .bkg-avl-box .bkg-row input:focus {
  border-color: var(--bkg-border-focus);
}

#bkg-post .bkg-avl-box .bkg-avl-remove {
  color: var(--bkg-danger);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bkg-radius-sm);
  transition: var(--bkg-transition);
}

#bkg-post .bkg-avl-box .bkg-avl-remove:hover {
  background: #fef2f2;
}

#bkg-post .bkg-avl-add,
#bkg-post .bkg-add-opt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bkg-primary);
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: var(--bkg-radius-sm);
  transition: var(--bkg-transition);
}

#bkg-post .bkg-avl-add:hover,
#bkg-post .bkg-add-opt:hover {
  background: var(--bkg-primary-light);
}

#bkg-post .bkg-eopts-empty {
  display: none;
  text-align: center;
  padding: 32px;
  color: var(--bkg-text-lighter);
  font-size: 14px;
}

/* Locale selector */
.bkg-locale-post-sel {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.bkg-locale-post-sel a {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--bkg-radius-sm);
  background: var(--bkg-bg-light);
  color: var(--bkg-text-light);
  transition: var(--bkg-transition);
}

.bkg-locale-post-sel a.active,
.bkg-locale-post-sel a:hover {
  background: var(--bkg-primary-light);
  color: var(--bkg-primary);
}

/* Price row */
#bkg-post .bkg-row-price1 .bkg-input-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

#bkg-post .bkg-row-price1 .bkg-inp-price {
  flex: 1;
}

#bkg-post .bkg-row-price1 .bkg-inp-currency {
  width: 100px !important;
}


/* ============================================
   PICKUP/DROPOFF LOCATION DISPLAY
   ============================================ */
.bkg-pickup-info {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bkg-bg-light);
  border-radius: var(--bkg-radius);
  border: 1px solid var(--bkg-border);
  margin-bottom: 20px;
}

.bkg-pickup-info .bkg-pi-item {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bkg-pickup-info .bkg-pi-icon {
  width: 36px;
  height: 36px;
  background: var(--bkg-primary-light);
  border-radius: var(--bkg-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bkg-pickup-info .bkg-pi-icon svg {
  width: 18px;
  height: 18px;
  color: var(--bkg-primary);
}

.bkg-pickup-info .bkg-pi-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bkg-text-lighter);
}

.bkg-pickup-info .bkg-pi-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--bkg-text);
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
/* Hide theme's default search bar — booking hero search replaces it */
.home-search,
section.home-search,
body#home > .content > section.home-search {
  display: none !important;
}

@media (max-width: 768px) {
  .bkg-search-container {
    z-index: 90;
  }

  .bkg-search-bar {
    flex-direction: column;
    padding: 12px;
    gap: 0;
    border-radius: var(--bkg-radius-lg);
  }

  .bkg-search-divider {
    width: 100%;
    height: 1px;
    margin: 2px 0;
  }

  .bkg-search-field {
    padding: 10px 14px;
    border-radius: var(--bkg-radius-sm);
    align-items: flex-start;
    min-height: auto;
    text-align: left;
    width: 100%;
  }

  .bkg-search-field .bkg-sf-label {
    text-align: left;
  }

  .bkg-sf-datetime-row {
    justify-content: flex-start;
  }

  .bkg-sf-location, .bkg-sf-date-from, .bkg-sf-date-to {
    flex: unset;
  }

  .bkg-sf-datetime-row {
    flex-wrap: nowrap;
  }

  .bkg-search-btn {
    width: 100%;
    border-radius: var(--bkg-radius);
    margin: 8px 0 0;
    height: 48px;
  }

  .bkg-search-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .bkg-hero-search {
    padding: 28px 16px 36px;
  }

  .bkg-hero-search .bkg-hero-title {
    font-size: 24px;
  }

  .bkg-location-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 100vh;
    z-index: 99999;
    border-radius: 0;
    overflow-y: auto;
    background: #fff;
  }

  .bkg-calendar {
    flex-direction: column;
  }

  .bkg-month { min-width: unset; }

  .bkg-res .bkg-itm {
    flex-direction: column;
    align-items: flex-start;
  }

  .bkg-res .bkg-item-data {
    padding-left: 0;
  }

  .bkg-pickup-info {
    flex-direction: column;
  }

  #bkg-form {
    padding: 20px;
  }

  #bkg-form .bkg-box.bkg-left,
  #bkg-form .bkg-box.bkg-right {
    width: 100%;
    float: none;
  }

  .bkg-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .bkg-list-grid {
    justify-content: flex-end;
  }

  .bkg-search-opt-tags {
    justify-content: flex-start;
  }

  /* Calendar popup mobile — full screen overlay */
  .bkg-calendar-popup {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 0;
    z-index: 99999 !important;
    overflow-y: auto;
    margin-top: 0;
    background: #fff;
  }

  /* Ensure hero section doesn't clip popups */
  .bkg-hero-search,
  .bkg-search-container,
  .bkg-search-form {
    overflow: visible !important;
  }

  .bkg-cal-months {
    flex-direction: column;
    gap: 16px;
    padding: 8px 16px 16px;
  }

  .bkg-cal-month {
    max-width: none;
  }

  .bkg-cal-header-bar {
    padding: 16px;
  }

  .bkg-cal-selection-info {
    gap: 10px;
  }

  .bkg-cal-time-row {
    gap: 10px;
  }

  .bkg-cal-nav {
    padding: 12px 16px 0;
  }

  .bkg-cal-footer {
    padding: 12px 16px;
    position: sticky;
    bottom: 0;
    background: var(--bkg-bg);
  }

  #bkg-post .bkg-input-box-date {
    width: 100%;
    margin: 0 0 6px;
  }

  #bkg-post .bkg-input-box-date:last-child {
    margin: 0;
  }

  #bkg-post .bkg-avl-box .bkg-row {
    flex-wrap: wrap;
  }

  #bkg-post .bkg-avl-box .bkg-ac-1,
  #bkg-post .bkg-avl-box .bkg-ac-2 {
    flex: 1 1 calc(50% - 4px);
  }

  #bkg-post .bkg-avl-box .bkg-ac-3 {
    flex: 1 1 100%;
  }

  #bkg-post .bkg-avl-box .bkg-ac-4 {
    flex: 1 1 60px;
  }
}

@media (max-width: 480px) {
  .bkg-hero-search .bkg-hero-title { font-size: 20px; }
  .bkg-hero-search .bkg-hero-subtitle { font-size: 14px; }
  .bkg-nav a { padding: 10px 14px; font-size: 13px; }
  .bkg-res .bkg-buts { flex-direction: column; }
  .bkg-res .bkg-buts .bkg-btn { width: 100%; }

  .bkg-sf-date-part {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .bkg-sf-time-part { display: none; }

  .bkg-search-opt-tags { gap: 6px; }
  .bkg-quick-loc { padding: 4px 10px; font-size: 11px; }
}


/* ============================================
   TOOLTIP OVERRIDES
   ============================================ */
.bkg-has-tooltip, .bkg-htm { cursor: help; }


/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes bkg-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bkg-res { animation: bkg-fadeIn 0.3s ease; }

@keyframes bkg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.bkg-loading { animation: bkg-pulse 1.5s ease-in-out infinite; }


/* ============================================
   SECTION HEADERS
   ============================================ */
.bkg-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.bkg-section-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--bkg-dark);
  margin: 0;
  letter-spacing: -0.3px;
}

.bkg-badge {
  display: inline-flex;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--bkg-radius-xl);
  background: var(--bkg-primary-light);
  color: var(--bkg-primary);
}

/* Option header layout */
.bkg-opt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

/* Feature tags */
.bkg-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--bkg-radius-xl);
  background: var(--bkg-bg-light);
  color: var(--bkg-text-light);
  border: 1px solid var(--bkg-border);
}

.bkg-feature-tag svg {
  color: var(--bkg-primary);
}

/* Detail sections */
.bkg-detail-section {
  margin-bottom: 20px;
}

.bkg-detail-section .bkg-desc-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bkg-detail-section .bkg-desc-header svg {
  color: var(--bkg-primary);
  flex-shrink: 0;
}

/* Feature list */
.bkg-feature-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
}

.bkg-feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--bkg-text);
  line-height: 1.6;
}

.bkg-feature-list li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--bkg-success);
  border-radius: 50%;
}


/* ============================================
   RESERVATION FORM - ENHANCED
   ============================================ */
.bkg-res-form-header {
  margin-bottom: 28px;
}

.bkg-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bkg-text-light);
  margin-bottom: 12px;
}

.bkg-back-link:hover {
  color: var(--bkg-primary);
}

.bkg-res-form-option {
  font-size: 14px;
  color: var(--bkg-text-light);
  margin-top: 4px;
}

.bkg-login-required {
  text-align: center;
  padding: 48px 24px;
}

.bkg-login-icon {
  margin-bottom: 16px;
  color: var(--bkg-text-lighter);
}

.bkg-login-required p {
  font-size: 15px;
  color: var(--bkg-text-light);
  margin: 0 0 20px;
}

/* User avatar */
.bkg-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.bkg-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bkg-active-user .bkg-user-data strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--bkg-dark);
}

.bkg-active-user .bkg-user-data span {
  font-size: 13px;
  color: var(--bkg-text-light);
}

/* Form grid */
.bkg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.bkg-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--bkg-text);
  margin-bottom: 6px;
}

.bkg-form-field .bkg-input-box input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--bkg-border);
  border-radius: var(--bkg-radius-sm);
  font-size: 14px;
  font-family: var(--bkg-font);
  color: var(--bkg-text);
  background: var(--bkg-bg);
  outline: none;
  transition: var(--bkg-transition);
}

.bkg-form-field .bkg-input-box input:focus {
  border-color: var(--bkg-border-focus);
  box-shadow: 0 0 0 3px rgba(89, 60, 251, 0.1);
}

/* Form sections */
.bkg-form-section {
  margin-bottom: 24px;
}

.bkg-form-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.bkg-form-section-header svg {
  color: var(--bkg-primary);
}

.bkg-form-section-header label {
  font-size: 15px;
  font-weight: 600;
  color: var(--bkg-dark);
  margin: 0;
}

/* Selected dates chips */
.bkg-selected-dates {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bkg-selected-dates svg {
  color: var(--bkg-text-lighter);
}

.bkg-date-chip {
  padding: 6px 14px;
  background: var(--bkg-bg);
  border: 2px solid var(--bkg-primary);
  border-radius: var(--bkg-radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--bkg-primary);
}

/* Pricing card */
/* Pickup details in reservation form */
.bkg-pickup-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--bkg-bg-light);
  border: 1px solid var(--bkg-border);
  border-radius: var(--bkg-radius-sm);
  padding: 16px;
}

.bkg-pickup-detail-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bkg-pickup-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--bkg-text-lighter);
}

.bkg-pickup-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--bkg-text);
}

.bkg-pricing-card {
  background: var(--bkg-bg-light);
  border: 1px solid var(--bkg-border);
  border-radius: var(--bkg-radius);
  padding: 20px;
  margin-bottom: 24px;
}

.bkg-pricing-card .bkg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bkg-pricing-card .bkg-row:last-child {
  margin-bottom: 0;
}

.bkg-pricing-card .bkg-total-row {
  padding-top: 12px;
  border-top: 2px solid var(--bkg-border);
  margin-top: 4px;
}

.bkg-pricing-card .bkg-total-row .bkg-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--bkg-primary);
}

.bkg-price-pending {
  color: var(--bkg-text-lighter);
  font-size: 14px;
  font-weight: 400;
}

.bkg-price-note {
  font-size: 12px;
  font-weight: 400;
  color: var(--bkg-text-lighter);
  margin-left: 4px;
}

.bkg-slot-input input {
  width: 80px !important;
  text-align: center;
}


/* ============================================
   RESERVATIONS PAGE - ENHANCED
   ============================================ */
.bkg-page-header {
  margin-bottom: 24px;
}

/* Stats bar */
.bkg-stats-bar {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--bkg-bg-light);
  border-radius: var(--bkg-radius);
  border: 1px solid var(--bkg-border);
}

.bkg-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.bkg-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--bkg-dark);
}

.bkg-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--bkg-text-lighter);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bkg-stat-pending { color: var(--bkg-warning); }
.bkg-stat-confirmed { color: var(--bkg-success); }

.bkg-stat-highlight {
  position: relative;
}

/* Toolbar */
.bkg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

/* Empty state */
.bkg-empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--bkg-text-lighter);
}

.bkg-empty-state svg {
  margin-bottom: 16px;
}

.bkg-empty-state h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--bkg-text);
  margin: 0 0 8px;
}

.bkg-empty-state p {
  font-size: 14px;
  color: var(--bkg-text-light);
  margin: 0;
}

/* Reservation card - enhanced */
.bkg-reservation-card {
  transition: var(--bkg-transition);
}

.bkg-reservation-card.bkg-needs-action {
  border-color: var(--bkg-warning);
  border-width: 2px;
}

.bkg-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px;
}

.bkg-card-top .bkg-itm {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  padding: 0;
}

.bkg-card-top .bkg-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bkg-card-top .bkg-item-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--bkg-text-light);
}

.bkg-card-top .bkg-item-loc svg {
  color: var(--bkg-text-lighter);
  flex-shrink: 0;
}

.bkg-card-status {
  flex-shrink: 0;
  margin-left: 12px;
}

.bkg-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--bkg-primary);
}

/* Detail grid */
.bkg-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bkg-detail-grid .bkg-el {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  border-bottom: none;
}

.bkg-detail-grid .bkg-el strong {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bkg-text-lighter);
  min-width: unset;
}

.bkg-detail-grid .bkg-el span {
  font-size: 14px;
  color: var(--bkg-text);
}

.bkg-detail-grid .bkg-el.bkg-el-full {
  grid-column: 1 / -1;
}

.bkg-el-price {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--bkg-primary) !important;
}

.bkg-code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px !important;
  letter-spacing: 0.5px;
}

/* Action buttons enhanced */
.bkg-action-buttons {
  gap: 8px;
}

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

  .bkg-stats-bar {
    gap: 16px;
  }

  .bkg-detail-grid {
    grid-template-columns: 1fr;
  }

  .bkg-card-top {
    flex-direction: column;
    gap: 12px;
  }

  .bkg-card-status {
    margin-left: 0;
  }

  .bkg-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .bkg-selected-dates {
    flex-wrap: wrap;
  }
}


/* ============================================
   HEADER CLEANUP - Hide unused nav links
   Removes Blog, FAQ, Forums, Companies, Favorites
   to declutter the main site navigation
   ============================================ */

/* Hide in desktop header top bar */
header .links a.blog,
header .links a.faq,
header .links a.forum,
header .links a.company,
header .links a.favorite {
  display: none !important;
}

/* Hide Favorite in mobile bottom nav bar */
#navi-bar a.favorite {
  display: none !important;
}

/* Rebalance remaining header links spacing */
header .links {
  gap: 6px;
}


/* ============================================
   ITEM PAGE CALENDAR - COMPATIBILITY
   Bridges the old PHP/JS class names to modern CSS styles
   PHP template uses: bkg-cal, bkg-wmove, bkg-cal-wrap,
     bkg-month, bkg-month-name, bkg-week-days, bkg-days, bkg-day
   ============================================ */

/* Main calendar container */
#bkg-ical .bkg-cal,
.bkg-cal {
  position: relative;
  user-select: none;
  overflow: hidden;
}

/* Navigation arrows (prev/next month) */
.bkg-wmove {
  position: absolute;
  top: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--bkg-border, #e2e8f0);
  background: var(--bkg-bg, #fff);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.bkg-wmove:hover {
  background: var(--bkg-bg-hover, #f1f5f9);
  border-color: var(--bkg-text-lighter, #94a3b8);
}

.bkg-wmove svg {
  width: 14px;
  height: 14px;
  color: var(--bkg-text, #334155);
}

.bkg-wmove-left {
  left: 0;
}

.bkg-wmove-right {
  right: 0;
}

/* Months wrapper */
.bkg-cal-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 44px 0 0;
  justify-content: center;
}

/* Single month */
.bkg-cal-wrap .bkg-month {
  flex: 1;
  min-width: 260px;
  max-width: 320px;
}

.bkg-cal.bkg-one-month .bkg-month {
  max-width: 100%;
}

/* Month name header */
.bkg-month-name {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--bkg-dark, #1a1a2e);
  padding: 8px 0;
}

.bkg-month-name strong {
  font-weight: 700;
}

/* Weekday headers */
.bkg-week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-bottom: 4px;
}

.bkg-week-days strong {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--bkg-text-lighter, #94a3b8);
  text-transform: uppercase;
  padding: 6px 0;
}

/* Days grid */
.bkg-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
}

/* Individual day cell */
.bkg-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
  font-size: 14px;
  color: var(--bkg-text, #334155);
}

.bkg-day span {
  position: relative;
  z-index: 1;
}

.bkg-day:hover:not(.bkg-disabled):not(.bkg-unavailable) {
  background: var(--bkg-primary-light, #f0edff);
  color: var(--bkg-primary, #593CFB);
}

/* Today */
.bkg-day.bkg-today {
  font-weight: 700;
  color: var(--bkg-primary, #593CFB);
}

.bkg-today-circle {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--bkg-primary, #593CFB);
  border-radius: 50%;
  display: block;
}

/* Disabled dates */
.bkg-day.bkg-disabled {
  color: var(--bkg-text-lighter, #94a3b8);
  opacity: 0.4;
  cursor: not-allowed;
}

/* Unavailable */
.bkg-day.bkg-unavailable {
  color: var(--bkg-text-lighter, #94a3b8);
  cursor: not-allowed;
  background: #fef2f2;
}

/* Status colors */
.bkg-day.bkg-stat-green {
  background: #dcfce7;
  color: #166534;
}

.bkg-day.bkg-stat-orange {
  background: #fef3c7;
  color: #92400e;
}

.bkg-day.bkg-stat-red {
  background: #fecaca;
  color: #991b1b;
}

.bkg-day.bkg-stat-white {
  background: #f0fdf4;
  color: #166534;
}

/* Selected day */
.bkg-day.bkg-selected {
  background: var(--bkg-primary, #593CFB) !important;
  color: #fff !important;
  font-weight: 600;
}

/* Range selection */
.bkg-day.bkg-in-range {
  background: var(--bkg-primary-light, #f0edff);
  color: var(--bkg-primary, #593CFB);
  border-radius: 0;
}

.bkg-day.bkg-range-start {
  border-radius: 50% 0 0 50%;
}

.bkg-day.bkg-range-end {
  border-radius: 0 50% 50% 0;
}

/* Night mode */
.bkg-cal.bkg-night .bkg-day.bkg-selected.bkg-range-start {
  border-radius: 50% 0 0 50%;
}

.bkg-cal.bkg-night .bkg-day.bkg-selected.bkg-range-end {
  border-radius: 0 50% 50% 0;
}

/* Responsive: single column on small screens */
@media (max-width: 640px) {
  .bkg-cal {
    overflow: visible;
  }

  .bkg-cal-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .bkg-cal-wrap .bkg-month {
    min-width: 0 !important;
    max-width: 100%;
    width: 100%;
  }
}


/* ============================================
   INLINE BOOKING - Unified booking on item page
   ============================================ */

/* Main container */
.bkg-inline-booking {
  background: var(--bkg-bg, #fff);
  border: 1px solid var(--bkg-border, #e2e8f0);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.bkg-inline-booking .bkg-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.bkg-inline-booking .bkg-section-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--bkg-dark, #1a1a2e);
  margin: 0;
}

.bkg-inline-price-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.bkg-inline-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--bkg-dark, #1a1a2e);
}

.bkg-inline-price-label {
  font-size: 13px;
  color: var(--bkg-text-light, #64748b);
}

.bkg-inline-price-old {
  font-size: 14px;
  color: var(--bkg-text-lighter, #94a3b8);
  text-decoration: line-through;
}

/* Feature tags row */
.bkg-inline-booking .bkg-item-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

/* Option selector (for multi-option listings) */
.bkg-option-selector {
  margin-bottom: 16px;
}

.bkg-option-selector label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--bkg-text-light, #64748b);
  margin-bottom: 6px;
}

.bkg-inline-opt-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bkg-border, #e2e8f0);
  border-radius: 8px;
  font-size: 14px;
  background: var(--bkg-bg, #fff);
}

/* Calendar section */
.bkg-inline-calendar-section {
  margin-bottom: 20px;
  border: 1px solid var(--bkg-border, #e2e8f0);
  border-radius: 12px;
  padding: 16px;
  background: var(--bkg-bg-soft, #fafbfc);
}

.bkg-inline-calendar-section .bkg-cal {
  margin: 0;
}

/* Date + Time Summary */
.bkg-date-time-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--bkg-bg-soft, #fafbfc);
  border-radius: 12px;
  border: 1px solid var(--bkg-border, #e2e8f0);
}

.bkg-dt-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bkg-dt-col label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bkg-text-light, #64748b);
}

.bkg-dt-col label svg {
  color: var(--bkg-primary, #593CFB);
}

.bkg-dt-date {
  font-size: 15px;
  font-weight: 600;
  color: var(--bkg-text-lighter, #94a3b8);
  min-height: 22px;
}

.bkg-dt-date.has-value {
  color: var(--bkg-dark, #1a1a2e);
}

.bkg-dt-arrow {
  display: flex;
  align-items: center;
  padding-top: 24px;
  color: var(--bkg-text-lighter, #94a3b8);
}

.bkg-time-select {
  padding: 8px 10px;
  border: 1px solid var(--bkg-border, #e2e8f0);
  border-radius: 8px;
  font-size: 13px;
  background: var(--bkg-bg, #fff);
  color: var(--bkg-text, #334155);
  cursor: pointer;
  width: 100%;
  max-width: 140px;
}

.bkg-time-select:focus {
  border-color: var(--bkg-primary, #593CFB);
  outline: none;
  box-shadow: 0 0 0 3px var(--bkg-primary-light, #f0edff);
}

/* Price summary */
.bkg-inline-price-summary {
  padding: 14px 16px;
  background: var(--bkg-primary-light, #f0edff);
  border-radius: 10px;
  margin-bottom: 16px;
}

.bkg-price-breakdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bkg-price-calc {
  font-size: 14px;
  color: var(--bkg-text, #334155);
}

.bkg-day-count {
  font-weight: 700;
}

.bkg-inline-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--bkg-dark, #1a1a2e);
}

/* Login required */
.bkg-inline-login {
  text-align: center;
  padding: 24px 16px;
  background: var(--bkg-bg-soft, #fafbfc);
  border-radius: 12px;
  border: 1px solid var(--bkg-border, #e2e8f0);
}

.bkg-inline-login p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--bkg-text, #334155);
}

.bkg-inline-login .bkg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Bookout box */
.bkg-inline-booking .bkg-bookout-box {
  margin-bottom: 12px;
  padding: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

/* User section */
.bkg-inline-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--bkg-bg-soft, #fafbfc);
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--bkg-border, #e2e8f0);
}

.bkg-inline-user .bkg-user-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bkg-inline-user .bkg-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.bkg-inline-user .bkg-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bkg-inline-user .bkg-user-data strong {
  display: block;
  font-size: 14px;
  color: var(--bkg-dark, #1a1a2e);
}

.bkg-inline-user .bkg-user-data span {
  font-size: 12px;
  color: var(--bkg-text-light, #64748b);
}

.bkg-user-change-inline {
  font-size: 13px;
  color: var(--bkg-primary, #593CFB);
  text-decoration: none;
  font-weight: 600;
}

.bkg-user-change-inline:hover {
  text-decoration: underline;
}

/* User fields (editable) */
.bkg-inline-user-fields,
.bkg-inline-guest-fields {
  margin-bottom: 12px;
}

.bkg-inline-user-fields .bkg-form-grid,
.bkg-inline-guest-fields .bkg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bkg-inline-user-fields .bkg-form-field.bkg-full,
.bkg-inline-guest-fields .bkg-form-field.bkg-full {
  grid-column: 1 / -1;
}

.bkg-inline-user-fields .bkg-form-field label,
.bkg-inline-guest-fields .bkg-form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--bkg-text-light, #64748b);
  margin-bottom: 4px;
}

/* Comment section */
.bkg-inline-comment {
  margin-bottom: 16px;
}

.bkg-inline-comment label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--bkg-text-light, #64748b);
  margin-bottom: 6px;
}

.bkg-inline-comment textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bkg-border, #e2e8f0);
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}

/* Submit button */
.bkg-inline-submit {
  margin-top: 8px;
}

.bkg-inline-submit .bkg-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
}

/* Success message */
.bkg-booking-success {
  text-align: center;
  padding: 32px 20px;
}

.bkg-success-icon {
  color: #16a34a;
  margin-bottom: 12px;
}

.bkg-success-icon svg {
  width: 48px;
  height: 48px;
}

.bkg-booking-success h4 {
  font-size: 20px;
  font-weight: 700;
  color: #16a34a;
  margin: 0 0 8px;
}

.bkg-booking-success p {
  margin: 4px 0;
  font-size: 14px;
  color: var(--bkg-text, #334155);
}

.bkg-booking-success strong {
  font-size: 18px;
  color: var(--bkg-dark, #1a1a2e);
  letter-spacing: 0.05em;
}

.bkg-success-msg {
  margin-top: 12px !important;
  font-size: 13px !important;
  color: var(--bkg-text-light, #64748b) !important;
}

/* Details section */
.bkg-inline-details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bkg-border, #e2e8f0);
}

.bkg-inline-summary {
  font-size: 14px;
  color: var(--bkg-text, #334155);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Loading state */
.bkg-make-res.bkg-loading {
  opacity: 0.7;
  cursor: wait;
}

/* Responsive — inline booking on mobile */
@media (max-width: 640px) {
  #bkg-item {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .bkg-inline-booking {
    padding: 12px;
    border-radius: 12px;
    overflow: visible;
  }

  .bkg-inline-calendar-section {
    padding: 8px;
    overflow: visible;
  }

  .bkg-date-time-summary {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .bkg-dt-arrow {
    padding-top: 0;
    justify-content: center;
  }

  .bkg-dt-arrow svg {
    transform: rotate(90deg);
  }

  .bkg-inline-user-fields .bkg-form-grid,
  .bkg-inline-guest-fields .bkg-form-grid {
    grid-template-columns: 1fr;
  }

  .bkg-time-select {
    max-width: 100%;
    width: 100%;
  }

  .bkg-section-header {
    padding: 0 0 12px;
  }

  .bkg-inline-price-summary {
    padding: 10px 12px;
  }

  .bkg-make-res {
    font-size: 15px;
    padding: 14px;
  }
}
