/* Festividades — panel full-bleed (como marketplace) + calendario */

body.page-festividades {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.page-festividades > header.site-header,
body.page-festividades > .dir-breadcrumb {
  flex-shrink: 0;
}

body.page-festividades > footer {
  flex-shrink: 0;
  margin-top: 0;
}

body.site-public main.fest-page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #fff !important;
  background-color: #fff !important;
  text-align: left;
  box-sizing: border-box;
}

.fest-page__panel {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.fest-page__inner {
  width: 100%;
  max-width: var(--container-max, 1320px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px) clamp(16px, 3vw, 32px) 40px;
  box-sizing: border-box;
}

.fest-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border-light, #eee);
}

.fest-page__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.fest-page__title {
  margin: 0;
  font-family: var(--font-heading, inherit);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  color: var(--color-text-heading, #1a1a1a);
  white-space: nowrap;
}

.fest-page__subtitle {
  margin: 0;
  color: var(--color-text-medium, #666);
  font-size: 0.9rem;
  line-height: 1.35;
}

.fest-page__subtitle::before {
  content: '—';
  margin-right: 12px;
  color: var(--color-border-light, #ddd);
}

.fest-page__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.fest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 28px;
  align-items: start;
  width: 100%;
}

.fest-cal {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
  box-sizing: border-box;
}

.fest-cal__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin-bottom: 14px;
}

.fest-cal__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fest-cal__month {
  margin: 0;
  min-width: 9.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  text-transform: capitalize;
  color: var(--color-text-heading, #1a1a1a);
}

.fest-cal__nav-btn,
.fest-cal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--color-brand-gold, #B9984B);
  background: #fff;
  color: var(--color-brand-gold-dark, #927e3d);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.fest-cal__nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  padding: 0;
}

.fest-cal__btn {
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.fest-cal__btn--ghost {
  border-color: #e2e8f0;
  color: var(--color-text-medium, #4b5563);
}

.fest-cal__nav-btn:hover,
.fest-cal__nav-btn:focus-visible,
.fest-cal__btn:hover,
.fest-cal__btn:focus-visible {
  background: var(--color-brand-gold, #B9984B);
  border-color: var(--color-brand-gold, #B9984B);
  color: #fff;
}

.fest-cal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fest-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-medium, #6b7280);
}

.fest-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.fest-cal__day {
  position: relative;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  padding: 6px 4px 10px;
  text-align: left;
  cursor: default;
  color: var(--color-text, #1f2937);
  font-family: inherit;
}

.fest-cal__day.is-other {
  color: #c4c9d1;
  background: transparent;
}

.fest-cal__day.is-today {
  border-color: var(--color-brand-gold, #B9984B);
  background: rgba(185, 152, 75, 0.12);
}

.fest-cal__day.has-fest {
  cursor: pointer;
  background: rgba(139, 26, 43, 0.05);
}

.fest-cal__day.has-fest:hover,
.fest-cal__day.has-fest:focus-visible,
.fest-cal__day.is-selected {
  border-color: var(--color-brand-primary, #8b1a2b);
  background: rgba(139, 26, 43, 0.1);
}

.fest-cal__num {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}

.fest-cal__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}

.fest-cal__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand-gold, #B9984B);
}

.fest-list__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--color-text-heading, #1a1a1a);
}

.fest-list__title i {
  color: var(--color-brand-gold, #B9984B);
}

.fest-list__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fest-list__item {
  display: flex;
  gap: 12px;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  min-height: 88px;
}

.fest-list__item:hover,
.fest-list__item:focus-visible {
  border-color: var(--color-brand-gold, #B9984B);
}

.fest-list__item.is-active {
  border-color: var(--color-brand-primary, #8b1a2b);
  box-shadow: 0 0 0 1px var(--color-brand-primary, #8b1a2b);
}

.fest-list__date {
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-primary, #8b1a2b);
  color: #fff;
  font-weight: 700;
}

.fest-list__date-day {
  font-size: 1.35rem;
  line-height: 1;
}

.fest-list__date-mon {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.fest-list__body {
  flex: 1 1 auto;
  padding: 10px 4px 10px 0;
  min-width: 0;
}

.fest-list__name {
  margin: 0 0 4px;
  font-size: 1rem;
}

.fest-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-medium, #6b7280);
}

.fest-list__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fest-list__meta i {
  color: var(--color-brand-gold, #B9984B);
  width: 0.9em;
  text-align: center;
}

.fest-list__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  background: #f3e8c6;
  color: #7a5c12;
}

.fest-list__go {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--color-brand-gold, #B9984B);
  font-size: 0.85rem;
}

.fest-list__empty {
  margin: 0;
  padding: 32px 12px;
  text-align: center;
  color: var(--color-text-medium, #6b7280);
}

.fest-list__empty i {
  display: block;
  margin-bottom: 10px;
  font-size: 2rem;
  color: var(--color-brand-gold, #B9984B);
}

.fest-list__empty p {
  margin: 0;
}

@media (max-width: 860px) {
  .fest-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .fest-cal__day {
    min-height: 44px;
    padding: 4px 2px 8px;
  }
}

@media (max-width: 800px) {
  .fest-page__header {
    align-items: flex-start;
  }

  .fest-page__intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .fest-page__subtitle::before {
    display: none;
  }

  .fest-page__title {
    white-space: normal;
  }

  .fest-page__cta {
    width: 100%;
    justify-content: center;
  }

  .fest-cal__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .fest-cal__nav {
    justify-content: space-between;
  }

  .fest-cal__month {
    flex: 1 1 auto;
  }

  .fest-cal__actions {
    justify-content: flex-start;
  }
}
