/* =====================================================
   EVENT BOOKING WEEKLY CALENDAR — ESSAOUIRA COOKING
   God View / Schedule appointment
   ===================================================== */

.ec-schedule-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 80px;
  color: #2c2118;
}

.ec-schedule-hero {
  text-align: center;
  margin-bottom: 28px;
}

.ec-schedule-eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: #4c0c47;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ec-schedule-title,
.ec-schedule-page .eb-page-heading {
  color: #2c2118 !important;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.05;
  font-weight: 900;
  margin: 0 0 12px;
}

.ec-schedule-intro {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(44,33,24,.72);
  font-size: 1.08rem;
  line-height: 1.7;
}

.ec-schedule-toolbar {
  display: grid;
  grid-template-columns: auto minmax(260px,1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  margin: 30px 0 18px;
  border: 1px solid rgba(76,12,71,.12);
  border-radius: 28px;
  background: #fffaf3;
  box-shadow: 0 18px 50px rgba(44,33,24,.08);
}

.ec-schedule-nav,
.ec-schedule-today {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  padding: 0 18px;
  text-decoration: none !important;
  font-weight: 900;
  white-space: nowrap;
}

.ec-schedule-nav {
  background: #fff;
  color: #4c0c47 !important;
  border: 1px solid rgba(76,12,71,.16);
}

.ec-schedule-nav span {
  font-size: 1.4rem;
  line-height: 1;
}

.ec-schedule-today {
  background: #4c0c47;
  color: #fff !important;
}

.ec-schedule-current {
  text-align: center;
}

.ec-schedule-current strong {
  display: block;
  color: #2c2118;
  font-size: 1.05rem;
  font-weight: 900;
}

.ec-schedule-current small {
  color: rgba(44,33,24,.62);
  font-weight: 700;
}

.ec-schedule-view-switch {
  display: flex;
  justify-content: center;
  margin: 14px 0 26px;
}

.ec-schedule-view-switch .eb-menu-calendar {
  display: inline-flex !important;
  gap: 8px;
  padding: 6px !important;
  margin: 0 !important;
  border-radius: 999px;
  background: #fff;
  list-style: none;
  box-shadow: 0 10px 28px rgba(44,33,24,.08);
}

.ec-schedule-view-switch .eb-menu-calendar a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #4c0c47 !important;
  font-weight: 800;
  text-decoration: none !important;
}

.ec-schedule-view-switch .eb-menu-calendar a.active {
  background: #4c0c47;
  color: #fff !important;
}

.ec-week-strip {
  position: sticky;
  top: 74px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 8px;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 24px;
  background: rgba(255,250,243,.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(76,12,71,.08);
}

.ec-week-pill {
  min-height: 74px;
  border-radius: 18px;
  background: #fff;
  color: rgba(44,33,24,.65) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  position: relative;
  border: 1px solid rgba(44,33,24,.06);
}

.ec-week-pill span {
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ec-week-pill strong {
  color: #2c2118;
  font-size: 1.35rem;
  line-height: 1;
  margin-top: 5px;
}

.ec-week-pill small {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(76,12,71,.08);
  color: #4c0c47;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 900;
}

.ec-week-pill.has-events {
  border-color: rgba(76,12,71,.18);
}

.ec-schedule-grid {
  display: grid;
  gap: 18px;
}

.ec-schedule-day {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr);
  gap: 18px;
  align-items: start;
}

.ec-schedule-day__head {
  position: sticky;
  top: 174px;
  border-radius: 24px;
  padding: 20px;
  background: #4c0c47;
  color: #fff;
  box-shadow: 0 16px 38px rgba(76,12,71,.18);
}

.ec-schedule-day__head span {
  display: block;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .8;
}

.ec-schedule-day__head strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.05;
  margin-top: 6px;
}

.ec-schedule-day__body {
  display: grid;
  gap: 12px;
}

.ec-schedule-no-event {
  min-height: 86px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-radius: 22px;
  background: #fff;
  color: rgba(44,33,24,.45);
  border: 1px dashed rgba(44,33,24,.16);
  font-weight: 800;
}

.ec-schedule-card {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr) 150px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(76,12,71,.10);
  box-shadow: 0 14px 34px rgba(44,33,24,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ec-schedule-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(44,33,24,.10);
  border-color: rgba(76,12,71,.20);
}

.ec-schedule-card__time {
  min-height: 64px;
  border-radius: 18px;
  background: #fffaf3;
  color: #4c0c47;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 900;
}

.ec-schedule-card__content h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.ec-schedule-card__content h2 a {
  color: #2c2118 !important;
  text-decoration: none !important;
  font-weight: 900;
}

.ec-schedule-card__content h2 a:hover {
  color: #4c0c47 !important;
}

.ec-schedule-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(44,33,24,.70);
  font-size: .9rem;
  line-height: 1.5;
  margin-top: 4px;
}

.ec-schedule-meta a {
  color: rgba(44,33,24,.70) !important;
  text-decoration: none !important;
}

.ec-schedule-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  background: #4c0c47;
  display: inline-block;
}

.ec-schedule-icon--location {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ec-schedule-icon--people {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm0 2c-4 0-7 2-7 5v2h14v-2c0-3-3-5-7-5Zm8-1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm0 2c-.8 0-1.6.1-2.3.3 1.9 1.1 3.3 2.7 3.3 4.7v1h4v-2c0-2.4-2.2-4-5-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8Zm0 2c-4 0-7 2-7 5v2h14v-2c0-3-3-5-7-5Zm8-1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm0 2c-.8 0-1.6.1-2.3.3 1.9 1.1 3.3 2.7 3.3 4.7v1h4v-2c0-2.4-2.2-4-5-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ec-availability {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
}

.ec-availability.is-available {
  color: #137947;
  background: rgba(19,121,71,.10);
}

.ec-availability.is-limited {
  color: #a35d00;
  background: rgba(243,156,18,.14);
}

.ec-availability.is-full {
  color: #9c1c1c;
  background: rgba(156,28,28,.10);
}

.ec-schedule-card__action {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.ec-schedule-price {
  text-align: center;
  color: #4c0c47;
  font-size: 1.15rem;
  font-weight: 900;
}

.ec-schedule-book ul,
.ec-schedule-book li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ec-schedule-book .btn,
.ec-schedule-book .eb-register-button {
  display: inline-flex !important;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  background: #4c0c47 !important;
  color: #fff !important;
  border: 0 !important;
  padding: 0 16px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.ec-schedule-full {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(156,28,28,.08);
  color: #9c1c1c;
  font-weight: 900;
}

.ec-schedule-empty {
  padding: 40px;
  border-radius: 28px;
  background: #fffaf3;
  border: 1px solid rgba(76,12,71,.10);
  text-align: center;
}

/* Mobile */
@media (max-width: 767px) {
  .ec-schedule-page {
    padding: 24px 14px 70px;
  }

  .ec-schedule-title,
  .ec-schedule-page .eb-page-heading {
    font-size: 2rem !important;
  }

  .ec-schedule-toolbar {
    grid-template-columns: 1fr 1fr;
    border-radius: 22px;
  }

  .ec-schedule-current {
    grid-column: 1 / -1;
    order: -1;
  }

  .ec-schedule-today {
    grid-column: 1 / -1;
  }

  .ec-schedule-view-switch {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
  }

  .ec-week-strip {
    top: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-left: -14px;
    margin-right: -14px;
    padding: 10px 14px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .ec-week-pill {
    min-width: 74px;
  }

  .ec-schedule-day {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ec-schedule-day__head {
    position: static;
    border-radius: 20px;
    padding: 16px;
  }

  .ec-schedule-day__head strong {
    font-size: 1.15rem;
  }

  .ec-schedule-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
  }

  .ec-schedule-card__time {
    min-height: 46px;
    justify-content: flex-start;
    padding: 0 16px;
  }

  .ec-schedule-card__action {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .ec-schedule-price {
    text-align: left;
  }
}


/* Sprint Calendar v2 — no view switch + closed state */
.ec-schedule-view-switch,
.eb-menu-calendar {
  display: none !important;
}

.ec-schedule-closed {
  background: rgba(44,33,24,.08) !important;
  color: rgba(44,33,24,.62) !important;
}
.ec-schedule-day {
  scroll-margin-top: 210px;
}

@media (max-width: 767px) {
  .ec-schedule-day {
    scroll-margin-top: 95px;
  }
}
