/* ============ BOOKING DATE/TIME PICKER ============ */

.bp-root {
  position: relative;
  width: 100%;
}

.bp-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: #333;
  transition: border-color 0.2s;
  font-family: inherit;
  height: auto !important;
}

.bp-trigger:hover {
  border-color: #c4a882;
}

.bp-trigger > svg:first-child {
  color: #c4a882;
  flex-shrink: 0;
}

.bp-value {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bp-placeholder {
  flex: 1;
  color: #999;
  font-style: italic;
}

.bp-time-tag {
  display: inline-block;
  padding: 2px 10px;
  background: #c4a882;
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.bp-chev {
  transition: transform 0.2s;
  color: #999;
  flex-shrink: 0;
}

.bp-chev-open {
  transform: rotate(180deg);
}

/* Popup */
.bp-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border: 1px solid #e0d8c8;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: 1fr 280px;
  min-width: 600px;
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 700px) {
  .bp-popup {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}

/* Calendar */
.bp-cal {
  padding: 16px;
  border-right: 1px solid #f0e8d8;
}

@media (max-width: 700px) {
  .bp-cal { border-right: 0; border-bottom: 1px solid #f0e8d8; }
}

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

.bp-cal-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: #c4a882;
  font-weight: 500;
}

.bp-nav {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: all 0.2s;
}

.bp-nav:hover:not(:disabled) {
  background: #f5efe2;
  color: #c4a882;
}

.bp-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.bp-month {
  user-select: none;
}

.bp-week-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.bp-dow {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #999;
  padding: 6px 0;
  text-transform: uppercase;
}

.bp-week-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.bp-cell {
  position: relative;
  height: 38px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #333;
  font-family: inherit;
  transition: all 0.15s;
}

.bp-empty {
  cursor: default;
  pointer-events: none;
}

.bp-cell.bp-available:hover {
  background: #f5efe2;
  color: #c4a882;
}

.bp-cell.bp-limited {
  color: #c4a882;
  background: rgba(196, 168, 130, 0.08);
}

.bp-cell.bp-limited:hover {
  background: rgba(196, 168, 130, 0.2);
}

.bp-cell.bp-full {
  color: #d9534f;
  background: rgba(217, 83, 79, 0.06);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(217, 83, 79, 0.4);
  opacity: 0.7;
}

.bp-cell.bp-past {
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

.bp-cell.bp-today {
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #c4a882;
}

.bp-cell.bp-selected {
  background: #c4a882 !important;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

.bp-cell.bp-selected .bp-dot { background: #fff !important; }

.bp-num {
  display: inline-block;
}

.bp-dot {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.bp-dot-amber { background: #c4a882; }
.bp-dot-red { background: #d9534f; }

/* Legend */
.bp-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0e8d8;
  font-size: 11px;
  color: #888;
  flex-wrap: wrap;
}

.bp-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bp-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.bp-legend-avail { background: #ddd; }
.bp-legend-limited { background: #c4a882; }
.bp-legend-full { background: #d9534f; }

/* Times panel */
.bp-times {
  padding: 16px;
  background: #fbf7f0;
  display: flex;
  flex-direction: column;
}

.bp-times-header {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: #c4a882;
  margin-bottom: 14px;
  font-weight: 500;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #ede4d0;
}

.bp-times-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #c4a882;
  opacity: 0.5;
  text-align: center;
  padding: 20px;
  gap: 12px;
}

.bp-times-empty p {
  font-size: 13px;
  margin: 0;
}

.bp-time-group {
  margin-bottom: 14px;
}

.bp-time-group:last-child {
  margin-bottom: 0;
}

.bp-time-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 8px;
  font-weight: 600;
}

.bp-time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

@media (max-width: 700px) {
  .bp-time-grid { grid-template-columns: repeat(4, 1fr); }
}

.bp-time {
  position: relative;
  padding: 9px 4px;
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.15s;
  text-align: center;
}

.bp-time:hover:not(:disabled) {
  background: #c4a882;
  color: #fff;
  border-color: #c4a882;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(196, 168, 130, 0.3);
}

.bp-time.bp-time-active {
  background: #c4a882;
  color: #fff;
  border-color: #c4a882;
  font-weight: 700;
}

.bp-time.bp-time-booked {
  cursor: not-allowed;
  background: #f5f5f5;
  color: #aaa;
  border-color: #eee;
  text-decoration: line-through;
  opacity: 0.6;
}

.bp-time-booked .bp-strike {
  display: none;
}
