/* ===========================================
   WORKSHOP CARD COMPONENT
   Compact card for workshop/event listings
   Used by: <!-- block:workshop_card:node:XXXX -->
   =========================================== */

.workshop-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  margin: 0;
}

.workshop-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  transform: translateY(-2px);
}

/* Link wrapper */
.workshop-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.workshop-card__link:hover {
  text-decoration: none;
  color: inherit;
}

/* Image */
.workshop-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}

.workshop-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.workshop-card:hover .workshop-card__image img {
  transform: scale(1.04);
}

/* Badges overlay */
.workshop-card__badges {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.workshop-card__type,
.workshop-card__duration,
.workshop-card__price {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.workshop-card__type {
  background: rgba(26, 26, 46, 0.85);
  color: #fff;
}

.workshop-card__duration {
  background: rgba(255,255,255, 0.9);
  color: #333;
}

.workshop-card__price {
  background: #2a9d8f;
  color: #fff;
  margin-left: auto;
}

/* Body */
.workshop-card__body {
  padding: 20px;
}

.workshop-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #1a1a2e;
}

.workshop-card__text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #555;
  margin: 0 0 12px;
}

.workshop-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #888;
}

.workshop-card__venue::before {
  content: "\2302";  /* house symbol */
  margin-right: 4px;
}

/* ===========================================
   VERTICAL LAYOUT (default) — stacked card
   =========================================== */
.workshop-card--vertical {
  max-width: 420px;
}

/* ===========================================
   HORIZONTAL LAYOUT — image left, text right
   =========================================== */
.workshop-card--horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: none;
}

.workshop-card--horizontal .workshop-card__link {
  display: contents;
}

.workshop-card--horizontal .workshop-card__image {
  aspect-ratio: 1 / 1;
  min-height: 200px;
}

.workshop-card--horizontal .workshop-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 680px) {
  .workshop-card--horizontal {
    grid-template-columns: 1fr;
  }

  .workshop-card--horizontal .workshop-card__image {
    aspect-ratio: 16 / 9;
  }

  .workshop-card--vertical {
    max-width: none;
  }
}

/* ===========================================
   GRID CONTAINER (for landing pages)
   Used when multiple cards appear together
   =========================================== */
.workshop-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.workshop-card-grid .workshop-card--vertical {
  max-width: none;
}

/* ===========================================
   BOOKING ENGINE COMPONENT
   Calendar + session picker + booking panel
   =========================================== */

.booking-engine {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  background: #fff;
}

.booking-engine--light {
  background: #fafafa;
  border-color: #e0e0e0;
}

/* Calendar */
.booking-calendar {
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-nav-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.calendar-nav-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.calendar-nav-btn:hover {
  background: #f0f0f0;
}

.calendar-mini-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 4px;
}

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

.mini-day {
  text-align: center;
  padding: 6px 0;
  font-size: 0.85rem;
  border-radius: 4px;
  cursor: default;
  color: #333;
}

.mini-day--empty {
  visibility: hidden;
}

.mini-day--past {
  color: #ccc;
}

.mini-day--today {
  font-weight: 700;
  color: #2a9d8f;
}

.mini-day--available {
  background: #e8f5e9;
  color: #2a9d8f;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.mini-day--available:hover {
  background: #c8e6c9;
}

.mini-day--selected {
  background: #2a9d8f !important;
  color: #fff !important;
}

/* Sessions */
.booking-sessions {
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.sessions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sessions-label {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
}

.sessions-date {
  font-size: 0.85rem;
  color: #333;
}

.sessions-placeholder {
  color: #999;
  font-size: 0.85rem;
  padding: 8px 0;
}

.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.session--available {
  background: #f8f8f8;
}

.session--available:hover {
  background: #e8f5e9;
}

.session--selected {
  background: #2a9d8f !important;
  color: #fff !important;
}

.session--selected .session-seats,
.session--selected .session-price {
  color: rgba(255,255,255,0.85);
}

.session--full {
  opacity: 0.5;
  cursor: not-allowed;
}

.session-time {
  font-weight: 600;
}

.session-seats {
  font-size: 0.8rem;
  color: #888;
}

.session-price {
  font-weight: 600;
  color: #2a9d8f;
}

/* Booking panel */
.booking-panel {
  padding: 16px;
  background: #fff;
}

.panel-header {
  margin-bottom: 12px;
}

.panel-title {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1a1a2e;
}

.panel-details {
  margin-bottom: 16px;
}

.panel-workshop-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.panel-session-info {
  font-size: 0.9rem;
  color: #555;
}

.panel-venue {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

.panel-duration {
  font-size: 0.85rem;
  color: #888;
}

/* Quantity */
.panel-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
}

.quantity-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #555;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.quantity-btn:hover:not(:disabled) {
  background: #f0f0f0;
}

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

.quantity-value {
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 20px;
  text-align: center;
}

.quantity-available {
  font-size: 0.8rem;
  color: #888;
}

/* Total */
.panel-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.total-calc {
  font-size: 0.85rem;
  color: #888;
}

.total-amount {
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a1a2e;
}

/* Checkout button */
.booking-checkout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.booking-checkout-btn:hover:not(:disabled) {
  background: #2a2a4e;
}

.booking-checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.booking-note {
  text-align: center;
  font-size: 0.75rem;
  color: #999;
  margin-top: 8px;
}
