/* ================================================
   SITGES PLANIFICADOR — Wizard CSS
   v1.1 + Resultats i filtres visuals
   ================================================ */

/* ─── Barra de progrés i label: ocults ─────────────────────────────── */

.wizard-progress-wrap {
  display: none;
}

/* ─── Contenidor de navegació ──────────────────────────────────────── */

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ─── Botons base ──────────────────────────────────────────────────── */

.wizard-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  white-space: nowrap;
}

.wizard-btn:active {
  transform: scale(0.97);
}

/* Botó Anterior */
.wizard-btn-prev {
  background: #f3f4f6;
  color: #374151;
}

.wizard-btn-prev:hover {
  background: #e5e7eb;
}

/* Botó Següent */
.wizard-btn-next {
  background: #1e2a5e;
  color: #ffffff;
  margin-left: auto;
}

.wizard-btn-next:hover {
  background: #16215a;
}

/* Botó Veure resultats (últim pas) */
.wizard-btn-send {
  background: #7de8e8;
  color: #1e2a5e;
  margin-left: auto;
}

.wizard-btn-send:hover {
  background: #5ad4d4;
}

/* ─── Missatge de validació ────────────────────────────────────────── */

.wizard-validation-msg {
  margin-top: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: #fff3cd;
  color: #92400e;
  border-left: 4px solid #f59e0b;
  border-radius: 4px;
  font-size: 2rem;
  font-weight: 500;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Botó "Veure resultats" (últim pas) ───────────────────────────── */

#brxe-jmbven.wizard-btn-send {
  background: #7de8e8 !important;
  color: #1e2a5e !important;
}
#brxe-jmbven.wizard-btn-send:hover {
  background: #5ad4d4 !important;
}

/* ─── Valors al resum ──────────────────────────────────────────────── */

/* Columna que agrupa label + valor → s'ocupa l'espai disponible entre icona i llapis */
.resume-text-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.resume-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #9ca3af;
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* ─── Icona d'edició al resum ──────────────────────────────────────── */

.resume-list-icon-edit {
  cursor: pointer;
  transition: color 0.2s;
}
.resume-list-icon-edit:hover {
  color: #1e2a5e;
}

/* ─── Responsive wizard ─────────────────────────────────────────────── */

@media (max-width: 480px) {
  .wizard-progress-wrap {
    padding: 0 1rem;
  }
}


/* ════════════════════════════════════════════════════════════════════
   RESULTATS DEL PLANIFICADOR
   ════════════════════════════════════════════════════════════════════ */

/* ─── Contenidor exterior ────────────────────────────────────────── */

.sitges-plan-results-wrap {
  margin-top: 2.5rem;
}

.container-full-width.brxe-container {
    width: var(--100);
    padding-right: var(--24px);
    padding-left: var(--24px);
    margin-right: 0;
    margin-left: 0;
    max-width: var(--100);
}

.grid-3-col.brxe-block {
    display: grid;
    align-items: initial;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: var(--24px);
}

.news-sm-card.brxe-block {
    border: var(--1px) solid var(--sitges-grey);
    overflow: hidden;
    display: grid;
    align-items: initial;
    position: relative;
    grid-template-columns: auto 1fr;
    height: var(--100);
}

.news-sm-card.brxe-block:hover {
    background-color: var(--sitges-ultra-light-blue);
}

.mini-card-img.brxe-image {
    max-width: 200px;
}

.mini-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--16px);
  gap: var(--8px);
}

/* ─── Estat de càrrega ───────────────────────────────────────────── */

.plan-results-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: #6b7280;
}

.plan-results-spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid #e5e7eb;
  border-top-color: #1e2a5e;
  border-radius: 50%;
  animation: plan-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes plan-spin {
  to { transform: rotate(360deg); }
}

/* ─── Estat buit / error ─────────────────────────────────────────── */

.plan-results-empty,
.plan-results-error {
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af;
}

.plan-results-empty .material-symbols-rounded {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.75rem;
}

.plan-results-error {
  color: #dc2626;
}


/* ════════════════════════════════════════════════════════════════════
   EXPLICACIÓ VISUAL DELS FILTRES ACTIUS
   ════════════════════════════════════════════════════════════════════ */

.plan-filters-explain {
  background: #f0f4ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.plan-filters-explain__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin: 0 0 0.75rem;
}

.plan-filters-explain__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Pastilla base */
.plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.plan-pill .material-symbols-rounded {
  font-size: 1rem;
  line-height: 1;
}

.plan-pill__step {
  font-weight: 700;
  font-size: 0.72rem;
  opacity: 0.7;
  margin-right: 0.1rem;
}

/* Color per pas */
.plan-pill--assistents  { background: #dbeafe; color: #1d4ed8; }
.plan-pill--sala        { background: #e0e7ff; color: #4338ca; }
.plan-pill--habitacio   { background: #fce7f3; color: #be185d; }
.plan-pill--servei      { background: #d1fae5; color: #065f46; }
.plan-pill--experiencia { background: #fef3c7; color: #92400e; }
.plan-pill--dates       { background: #ccfbf1; color: #0f766e; }

.plan-filters-explain__count {
  font-size: 0.88rem;
  color: #374151;
  margin: 0;
}

.plan-filters-explain__count strong {
  color: #1e2a5e;
  font-weight: 700;
}


/* ════════════════════════════════════════════════════════════════════
   GRAELLA DE RESULTATS
   ════════════════════════════════════════════════════════════════════ */


/* Títol de secció */
.plan-results-section {
  margin-bottom: 2.5rem;
}

.plan-results-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e2a5e;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.plan-results-section__title .material-symbols-rounded {
  font-size: 1.3rem;
  color: #4f46e5;
}

/* Graella 3 columnes */
.plan-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .plan-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .plan-results-grid {
    grid-template-columns: 1fr;
  }
  .plan-filters-explain {
    padding: 1rem;
  }
  .plan-pill {
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
  }
}

/* ─── Placeholder si no hi ha miniatura ─────────────────────────── */

.mini-card-img--placeholder {
  width: 100%;
  aspect-ratio: 768 / 332;
  background: #f3f4f6;
}

/* ─── Selector de mesos (step07B) ───────────────────────────────── */

.plan-month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.plan-month-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}

.plan-month-card:hover {
  border-color: #1e2a5e;
}

.plan-month-card.form-card--selected {
  border-color: #1e2a5e;
  background: #1e2a5e;
  color: #fff;
}

.plan-month-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.plan-month-year {
  font-size: 0.78rem;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .plan-month-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Botó "Tornar a començar" ───────────────────────────────────── */

.wizard-restart-wrap {
  display: flex;
  justify-content: center;
  padding-top: var(--48px);
}

.wizard-btn-restart {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
    line-height: 1.1;
    padding-top: var(--12px);
    padding-right: var(--24px);
    padding-bottom: var(--12px);
    padding-left: var(--24px);
    background-color: var(--sitges-soft-blue);
    border-radius: 100px;
    align-items: center;
    border-width: 0;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    color: var(--sitges-dark-blue);
    font-size: var(--text-m);
  transition: background 0.2s, color 0.2s;
}

.wizard-btn-restart:hover {
  background: var(--sitges-dark-blue);
  color: #ffffff;
}

.wizard-btn-restart .material-symbols-rounded {
  font-size: 1.2rem;
}
