/* =====================================================
   ESSAOUIRA COOKING — HOME PLANNER PREVIEW
   Module: mod_eb_events override
   ===================================================== */

.ec-home-planner {
  padding: 90px 20px;
  background:
    radial-gradient(circle at top right, rgba(76,12,71,.06), transparent 42%),
    #fffaf3;
  color: #2c2118;
}

.ec-home-planner__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.ec-home-planner__head {
  max-width: 720px;
  margin: 0 auto 38px;
  text-align: center;
}

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

.ec-home-planner__head h2 {
  margin: 0;
  color: #2c2118;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 900;
}

.ec-home-planner__head p {
  margin: 18px auto 0;
  color: rgba(44,33,24,.72);
  font-size: 1.08rem;
  line-height: 1.75;
}

.ec-home-planner__rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ec-home-event-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(76,12,71,.10);
  box-shadow: 0 20px 55px rgba(44,33,24,.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ec-home-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(44,33,24,.14);
  border-color: rgba(76,12,71,.18);
}

.ec-home-event-card__media {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: #4c0c47;
  text-decoration: none !important;
}

.ec-home-event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
  display: block;
}

.ec-home-event-card:hover .ec-home-event-card__media img {
  transform: scale(1.06);
}

.ec-home-event-card__placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.ec-home-event-card__price {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: #4c0c47;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.ec-home-event-card__body {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.ec-home-event-card__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(76,12,71,.08);
  color: #4c0c47;
}

.ec-home-event-card__date span {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ec-home-event-card__date strong {
  font-size: .86rem;
  font-weight: 900;
}

.ec-home-event-card h3 {
  margin: 4px 0 2px;
  font-size: 1.32rem;
  line-height: 1.22;
}

.ec-home-event-card h3 a {
  color: #2c2118 !important;
  text-decoration: none !important;
  font-weight: 900;
}

.ec-home-event-card h3 a:hover {
  color: #4c0c47 !important;
}

.ec-home-event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(44,33,24,.72);
  font-size: .93rem;
  line-height: 1.45;
}

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

.ec-home-icon--clock {
  -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 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20Zm1-10.4V6h-2v7h6v-2h-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='M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20Zm1-10.4V6h-2v7h6v-2h-4Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.ec-home-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-home-icon--chef {
  -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='M7 11a5 5 0 0 1 10 0h1a3 3 0 0 0 0-6c-.5 0-1 .1-1.4.3A5.5 5.5 0 0 0 6.4 5.3C6 5.1 5.5 5 5 5a3 3 0 0 0 0 6h2Zm0 2h10v7a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2v-7Zm2 2v5h2v-5H9Zm4 0v5h2v-5h-2Z'/%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='M7 11a5 5 0 0 1 10 0h1a3 3 0 0 0 0-6c-.5 0-1 .1-1.4.3A5.5 5.5 0 0 0 6.4 5.3C6 5.1 5.5 5 5 5a3 3 0 0 0 0 6h2Zm0 2h10v7a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2v-7Zm2 2v5h2v-5H9Zm4 0v5h2v-5h-2Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

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

.ec-home-availability::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 7px;
  background: currentColor;
}

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

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

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

.ec-home-event-card__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 10px;
}

.ec-home-btn {
  min-height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none !important;
}

.ec-home-btn--primary {
  background: #4c0c47;
  color: #fff !important;
}

.ec-home-btn--ghost {
  background: #fffaf3;
  color: #4c0c47 !important;
}

.ec-home-btn--disabled {
  background: rgba(44,33,24,.08);
  color: rgba(44,33,24,.55);
}

.ec-home-planner__footer {
  text-align: center;
  margin-top: 34px;
}

.ec-home-planner__schedule {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border-radius: 999px;
  background: #4c0c47;
  color: #fff !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 14px 34px rgba(76,12,71,.22);
}

.ec-home-planner__empty {
  padding: 32px;
  text-align: center;
  border-radius: 24px;
  background: #fff;
  color: rgba(44,33,24,.7);
}

/* Mobile: horizontal premium rail */
@media (max-width: 900px) {
  .ec-home-planner__rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 18px;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
  }

  .ec-home-event-card {
    min-width: min(82vw, 360px);
    scroll-snap-align: start;
  }
}

@media (max-width: 767px) {
  .ec-home-planner {
    padding: 64px 16px;
  }

  .ec-home-planner__head {
    text-align: left;
    margin-bottom: 26px;
  }

  .ec-home-planner__head h2 {
    font-size: 2rem;
  }

  .ec-home-planner__head p {
    font-size: .98rem;
  }

  .ec-home-event-card__media {
    height: 210px;
  }

  .ec-home-event-card__body {
    padding: 20px;
  }

  .ec-home-event-card__actions {
    grid-template-columns: 1fr;
  }

  .ec-home-btn {
    width: 100%;
  }
}
.ec-home-event-card {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity .6s ease,
    transform .6s ease;
}

.ec-home-event-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
