/* Ground booking modal & slot picker */
.ground-card .btn-open-slots {
  background: transparent;
  border: 1px solid rgba(220, 174, 120, 0.45);
  color: #fff;
  font-weight: 600;
  padding: 12px 18px;
  width: 100%;
  clip-path: polygon(0% 0%, 92% 0%, 100% 28%, 100% 100%, 0% 100%);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.ground-card .btn-open-slots:hover {
  background: rgba(220, 174, 120, 0.12);
  border-color: var(--p);
  color: var(--p);
}

.ground-card .slots-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted-text-color);
  margin-top: 0.75rem;
}

.ground-card .slots-preview .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  flex-shrink: 0;
}

.booking-slots-modal .modal-content {
  background: linear-gradient(165deg, #0b1f29 0%, #06141b 55%, #041018 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: #fff;
  overflow: hidden;
}

.booking-slots-modal .modal-header {
  border-bottom: 1px solid rgba(26, 58, 68, 0.8);
  padding: 1.25rem 1.5rem 1rem;
}

.booking-slots-modal .modal-title {
  font-family: var(--f2);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.booking-slots-modal .modal-ground-meta {
  font-size: 0.8rem;
  color: var(--muted-text-color);
  margin-top: 0.25rem;
}

.booking-slots-modal .btn-close {
  filter: invert(1);
  opacity: 0.7;
}

.booking-slots-modal .modal-body {
  padding: 1rem 1.5rem 0.5rem;
}

.booking-slots-modal .date-quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.booking-slots-modal .date-pill {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.booking-slots-modal .date-pill:hover,
.booking-slots-modal .date-pill.active {
  border-color: var(--p);
  background: rgba(220, 174, 120, 0.15);
  color: #fff;
}

.booking-slots-modal .booking-date-input {
  max-width: 100%;
  color: #fff;
  background-color: #0f232d;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.booking-slots-modal .booking-date-input:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 0.15rem rgba(220, 174, 120, 0.2);
  color: #fff;
  background-color: #0f232d;
}

.booking-slots-modal input[type="date"].booking-date-input::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(2);
}

.booking-slots-modal input[type="date"].booking-date-input {
  color-scheme: dark;
}

.booking-slots-modal .slot-section-label {
  font-size: 0.8rem;
  color: var(--muted-text-color);
  margin: 1rem 0 0.65rem;
}

.booking-slots-modal .slots-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--muted-text-color);
  margin-bottom: 0.75rem;
}

.booking-slots-modal .slots-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.booking-slots-modal .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.booking-slots-modal .legend-dot.available {
  border: 2px solid rgba(0, 255, 136, 0.6);
  background: rgba(0, 255, 136, 0.12);
}

.booking-slots-modal .legend-dot.selected {
  background: var(--p);
  border: none;
}

.booking-slots-modal .legend-dot.booked {
  background: rgba(255, 77, 77, 0.25);
  border: 1px solid rgba(255, 77, 77, 0.5);
}

.booking-slots-modal .slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.65rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 0.5rem;
}

.booking-date-input {
  background-color: #111 !important;
  color: #fff !important;
  border: 1px solid #444 !important;
  color-scheme: dark;
  background-color: #dcae7875 !important;
  color: #fff !important;
  border: 1px solid #444 !important;
  color-scheme: dark;
}

.booking-date-input::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(100);
  opacity: 1;
  cursor: pointer;
}
.booking-slots-modal .slots-grid::-webkit-scrollbar {
  width: 5px;
}

.booking-slots-modal .slots-grid::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.booking-slots-modal .slot-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  min-height: 72px;
}

.booking-slots-modal .slot-card:hover:not(.booked-slot) {
  border-color: rgba(220, 174, 120, 0.55);
  transform: translateY(-1px);
}

.booking-slots-modal .slot-card:has(.slot-checkbox-input:checked) {
  border-color: var(--p);
  background: rgba(220, 174, 120, 0.1);
  box-shadow: 0 4px 16px rgba(220, 174, 120, 0.12);
}

.booking-slots-modal .slot-card.booked-slot {
  opacity: 0.55;
  cursor: not-allowed;
  border-style: dashed;
}

.booking-slots-modal .slot-card .slot-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.booking-slots-modal .slot-card .slot-price {
  font-size: 0.75rem;
  color: var(--p);
  font-weight: 600;
}

.booking-slots-modal .slot-card .slot-status {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.booking-slots-modal .slot-card .slot-status.booked {
  color: #ff6b6b;
}

.booking-slots-modal .slot-card .slot-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.booking-slots-modal .slot-card .slot-check-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: transparent;
  transition: all 0.2s;
}

.booking-slots-modal .slot-card:has(.slot-checkbox-input:checked) .slot-check-icon {
  background: var(--p);
  border-color: var(--p);
  color: #06141b;
}

.booking-slots-modal .slots-loading,
.booking-slots-modal .slots-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted-text-color);
  font-size: 0.9rem;
}

.booking-slots-modal .modal-footer {
  border-top: 1px solid rgba(26, 58, 68, 0.8);
  padding: 1rem 1.5rem 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.booking-slots-modal .booking-summary {
  flex: 1;
  min-width: 140px;
}

.booking-slots-modal .booking-summary .selected-count {
  font-size: 0.75rem;
  color: var(--muted-text-color);
}

.booking-slots-modal .booking-summary .total-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--p);
  font-family: var(--f2);
}

.booking-slots-modal .btn-confirm-modal {
  min-width: 160px;
  flex-shrink: 0;
}

.booking-slots-modal .btn-confirm-modal:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 576px) {
  .booking-slots-modal .modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .booking-slots-modal .btn-confirm-modal {
    width: 100%;
  }

  .booking-slots-modal .slots-grid {
    max-height: 240px;
  }
}
