/**
 * Stadlio Bookings — Experiences, Restaurants, Beaches.
 * Customizable via --stadlio-primary, --stadlio-primary-hover.
 */
.stadlio-bookings-wrap {
  --stadlio-primary: #2563eb;
  --stadlio-primary-hover: #1d4ed8;
  --stadlio-card-bg: #fff;
  --stadlio-border: #e5e7eb;
  --stadlio-text: #1e293b;
  --stadlio-muted: #64748b;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Event check-in */
.stadlio-checkin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.stadlio-checkin-result {
  margin-top: 8px;
  font-weight: 600;
}
.stadlio-checkin-result--ok {
  color: #059669;
}
.stadlio-checkin-result--error {
  color: #dc2626;
}
.stadlio-checkin-event-select {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.stadlio-checkin-event-select select {
  min-width: 240px;
  max-width: 100%;
}
.stadlio-helper {
  font-size: 0.875rem;
  color: var(--stadlio-muted);
  margin: 0 0 8px 0;
}

/* Experience calendar */
.stadlio-experience-calendar {
  font-family: inherit;
  background: #fffbf7;
  border-radius: 16px;
  padding: 24px;
}

@media (min-width: 640px) {
  .stadlio-experience-calendar {
    padding: 32px;
  }
}

.stadlio-experience-calendar__header {
  background: linear-gradient(135deg, #fffbf7 0%, #fff7ed 50%, #ffedd5 100%);
  border-radius: 12px;
  padding: 24px 20px;
  margin-bottom: 24px;
  border: 1px solid #fed7aa;
}

@media (min-width: 640px) {
  .stadlio-experience-calendar__header {
    padding: 28px 28px;
  }
}

.stadlio-experience-calendar__title {
  margin: 0 0 4px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stadlio-text);
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .stadlio-experience-calendar__title {
    font-size: 1.75rem;
  }
}

.stadlio-experience-calendar__subtitle {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--stadlio-muted);
}

.stadlio-experience-calendar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 768px) {
  .stadlio-experience-calendar__grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

.stadlio-experience-card {
  background: var(--stadlio-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--stadlio-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stadlio-experience-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stadlio-experience-card__body {
  padding: 16px;
}

.stadlio-experience-card__title {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--stadlio-text);
}

.stadlio-experience-card__meta {
  font-size: 0.9rem;
  color: var(--stadlio-muted);
  margin-bottom: 12px;
}

.stadlio-experience-card__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--stadlio-primary);
}

.stadlio-experience-card__cta {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: var(--stadlio-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.stadlio-experience-card__cta:hover {
  background: var(--stadlio-primary-hover);
  color: #fff;
}

/* Restaurant booking form */
.stadlio-restaurant-booking {
  max-width: 480px;
  margin: 0 auto;
}

.stadlio-restaurant-booking__form {
  background: var(--stadlio-card-bg);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--stadlio-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stadlio-restaurant-booking__title {
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--stadlio-text);
}

.stadlio-restaurant-booking__field {
  margin-bottom: 16px;
}

.stadlio-restaurant-booking__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--stadlio-text);
}

.stadlio-restaurant-booking__input,
.stadlio-restaurant-booking__select {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid var(--stadlio-border);
  border-radius: 8px;
}

.stadlio-restaurant-booking__input:focus,
.stadlio-restaurant-booking__select:focus {
  outline: none;
  border-color: var(--stadlio-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.stadlio-restaurant-booking__submit {
  width: 100%;
  margin-top: 8px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--stadlio-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.stadlio-restaurant-booking__submit:hover {
  background: var(--stadlio-primary-hover);
}

.stadlio-restaurant-booking__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.stadlio-restaurant-booking__msg {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.stadlio-restaurant-booking__msg--success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.stadlio-restaurant-booking__msg--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Beach map (extends stadlio-beach-map.css) */
.stadlio-beach-map-wrap {
  width: 100%;
  max-width: 900px;
  margin: 1rem auto;
}

.stadlio-beach-map {
  position: relative;
  width: 100%;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e8f4f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stadlio-beach-element {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stadlio-beach-element--umbrella {
  background: rgba(255, 200, 100, 0.95);
  border: 2px solid #e69500;
}

.stadlio-beach-element--sunbed {
  background: rgba(180, 220, 255, 0.95);
  border: 2px solid #4a90d9;
}

.stadlio-beach-element[data-status="available"]:hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.stadlio-beach-element[data-status="booked"],
.stadlio-beach-element[data-status="reserved"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.stadlio-beach-element__price {
  font-size: 10px;
  font-weight: 600;
  color: #333;
}

.stadlio-beach-element__book {
  font-size: 10px;
  padding: 4px 8px;
  margin-top: 2px;
  border: none;
  border-radius: 6px;
  background: var(--stadlio-primary, #2563eb);
  color: #fff;
  cursor: pointer;
}

.stadlio-beach-element__book:hover {
  background: var(--stadlio-primary-hover, #1d4ed8);
}

/* Modal */
.stadlio-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
}

.stadlio-booking-modal__content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.stadlio-booking-modal__close {
  float: right;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--stadlio-muted);
}

.stadlio-booking-modal__close:hover {
  color: var(--stadlio-text);
}

/* My bookings */
.stadlio-my-bookings {
  max-width: 600px;
  margin: 0 auto;
}

.stadlio-my-bookings__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.stadlio-my-bookings__filter {
  padding: 6px 14px;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--stadlio-muted);
  background: #f1f5f9;
  border: 1px solid var(--stadlio-border);
  transition: background 0.2s, color 0.2s;
}

.stadlio-my-bookings__filter:hover {
  background: #e2e8f0;
  color: var(--stadlio-text);
}

.stadlio-my-bookings__filter--active {
  background: var(--stadlio-primary);
  color: #fff;
  border-color: var(--stadlio-primary);
}

.stadlio-my-bookings__filter--active:hover {
  background: var(--stadlio-primary-hover);
  color: #fff;
}

.stadlio-my-bookings__empty {
  padding: 2rem;
  text-align: center;
}

.stadlio-my-bookings__empty-cta {
  margin: 12px 0 8px 0;
  font-size: 0.95rem;
  color: var(--stadlio-muted);
}

.stadlio-my-bookings__empty-links {
  margin-top: 12px;
}

.stadlio-my-bookings__empty-links .stadlio-experience-card__cta {
  margin: 4px 8px 4px 0;
}

.stadlio-my-bookings__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stadlio-my-bookings__item {
  padding: 16px;
  margin-bottom: 12px;
  background: var(--stadlio-card-bg);
  border: 1px solid var(--stadlio-border);
  border-radius: 10px;
}

.stadlio-my-bookings__item-body {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 4px;
}

.stadlio-my-bookings__item-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stadlio-muted);
}

.stadlio-my-bookings__item-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--stadlio-text);
}

.stadlio-my-bookings__item-subtitle {
  font-size: 0.9rem;
  color: var(--stadlio-muted);
}

.stadlio-my-bookings__item-meta {
  font-size: 0.9rem;
  color: var(--stadlio-muted);
  margin-top: 4px;
}

.stadlio-my-bookings__status {
  font-weight: 500;
}

.stadlio-my-bookings__status--confirmed {
  color: #059669;
}

.stadlio-my-bookings__status--pending_confirmation {
  color: #d97706;
}

.stadlio-my-bookings__qr-link {
  margin-left: 8px;
  font-size: 0.9rem;
  color: var(--stadlio-primary);
  text-decoration: none;
}

.stadlio-my-bookings__qr-link:hover {
  text-decoration: underline;
}

.stadlio-empty {
  padding: 2rem;
  text-align: center;
  color: var(--stadlio-muted);
}

/* Experiences empty state — pastel orange, aligned with other modules */
.stadlio-experience-calendar--empty {
  --stadlio-exp-surface: #fff7ed;
  --stadlio-exp-border: #fed7aa;
  --stadlio-exp-accent: #ea580c;
  --stadlio-exp-accent-hover: #c2410c;
  background: var(--stadlio-exp-surface);
}

.stadlio-experience-empty {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border-radius: 16px;
  border: 2px dashed var(--stadlio-exp-border);
  box-shadow: 0 2px 12px rgba(234, 88, 12, 0.06);
}

@media (min-width: 640px) {
  .stadlio-experience-empty {
    padding: 56px 32px;
  }
}

.stadlio-experience-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(234, 88, 12, 0.12);
  border-radius: 16px;
  font-size: 2rem;
  line-height: 1;
  color: var(--stadlio-exp-accent);
}

.stadlio-experience-empty__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--stadlio-text);
}

.stadlio-experience-empty__msg {
  margin: 0 0 8px;
  color: var(--stadlio-muted);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.stadlio-experience-empty__hint {
  margin: 0 0 20px;
  color: var(--stadlio-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0.9;
}

.stadlio-experience-empty__cta {
  margin: 0;
}

.stadlio-experience-empty__cta .stadlio-experience-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  background: var(--stadlio-exp-accent);
  transition: background 0.15s, transform 0.1s;
}

.stadlio-experience-empty__cta .stadlio-experience-card__cta:hover {
  background: var(--stadlio-exp-accent-hover);
  transform: translateY(-1px);
}

.stadlio-experience-empty__cta .stadlio-experience-card__cta:focus {
  outline: 2px solid var(--stadlio-exp-accent);
  outline-offset: 2px;
}
