/* Stadlio Experience Public CSS — M10 */

/* ── Mini calendar ─────────────────────────────────────────────────────── */
.stadlio-mini-cal { font-family: inherit; }

.stadlio-mini-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.stadlio-mini-cal-title { font-weight: 600; font-size: 15px; }
.stadlio-mini-cal-nav {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 16px;
  color: #374151;
  transition: background .15s;
}
.stadlio-mini-cal-nav:hover { background: #f1f5f9; }

.stadlio-mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.stadlio-day-name {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  padding: 4px 0;
}
.stadlio-day {
  text-align: center;
  padding: 7px 2px;
  border-radius: 6px;
  font-size: 13px;
  cursor: default;
  min-height: 32px;
  line-height: 1.2;
}
.stadlio-day-available {
  background: #f0fdf4;
  color: #166534;
  cursor: pointer;
  font-weight: 500;
}
.stadlio-day-available:hover { background: #dcfce7; }
.stadlio-day-selected {
  background: #2271b1 !important;
  color: #fff !important;
  font-weight: 700;
}
.stadlio-day-past { color: #cbd5e1; }
.stadlio-day-unavailable { color: #d1d5db; }
.stadlio-day-empty {}

/* ── Slot orari ─────────────────────────────────────────────────────────── */
.stadlio-time-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stadlio-time-slot {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
  background: #fff;
}
.stadlio-time-slot:hover { border-color: #2271b1; background: #eff6ff; }
.stadlio-time-slot.selected { border-color: #2271b1; background: #2271b1; color: #fff; }
.stadlio-time-slot.full { opacity: .45; cursor: not-allowed; }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.stadlio-experience-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.stadlio-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
}
.stadlio-badge-bestseller { background: #fef9c3; color: #854d0e; }
.stadlio-badge-new { background: #eff6ff; color: #1d4ed8; }
.stadlio-badge-fire { background: #fff7ed; color: #c2410c; }
.stadlio-badge-cancel { background: #f0fdf4; color: #166534; }
.stadlio-badge-soldout { background: #fef2f2; color: #991b1b; }

/* ── Featured badge ────────────────────────────────────────────────────── */
.stadlio-likely-sellout-badge {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.95);
  border-radius: 6px;
  white-space: nowrap;
}

.stadlio-featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.4);
}
.stadlio-experience-card {
  position: relative;
}
.stadlio-experience-card .stadlio-experience-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  margin-bottom: 0;
}
.stadlio-experience-card .stadlio-experience-badges:empty {
  display: none;
}
.stadlio-experience-card.is-featured {
  box-shadow: 0 0 0 2px #f59e0b, 0 4px 16px rgba(245, 158, 11, 0.2);
}

/* ── Verified review ────────────────────────────────────────────────────── */
.stadlio-verified-review {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #166534;
  font-weight: 600;
}

/* ── Map ────────────────────────────────────────────────────────────────── */
.stadlio-meeting-point-map {
  height: 200px;
  border-radius: 8px;
  margin: 12px 0;
  overflow: hidden;
}
.stadlio-map-links {
  display: flex;
  gap: 14px;
  font-size: 13px;
  margin-bottom: 12px;
}
.stadlio-map-links a { color: #2271b1; text-decoration: none; }
.stadlio-map-links a:hover { text-decoration: underline; }

/* ── M16: Image LQIP blur-up ───────────────────────────────────────────── */
.stadlio-img-wrap {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.stadlio-img-wrap img {
  position: relative;
  z-index: 1;
  transition: opacity 0.3s;
}
.stadlio-img-wrap img.stadlio-img-loading {
  opacity: 0;
}
.stadlio-img-wrap img.stadlio-img-loaded {
  opacity: 1;
}

/* ── Gallery lightbox ──────────────────────────────────────────────────── */
.stadlio-gallery-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stadlio-gallery-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

/* ── Price preview ──────────────────────────────────────────────────────── */
.stadlio-booking-price-preview {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 12px 0;
  font-weight: 600;
  font-size: 15px;
}

/* ── Responsive / mobile first ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .stadlio-day { padding: 5px 1px; font-size: 12px; }
  .stadlio-time-slots { gap: 6px; }
  .stadlio-time-slot { padding: 8px 10px; font-size: 12px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .stadlio-mini-cal-nav { min-height: 44px; min-width: 44px; }
}
