/* components.css */
.btn {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7em 1.4em;
  border-radius: 6px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, .btn:focus { background: #c95431; border-color: #c95431; }
.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--text-on-dark);
}
.btn--ghost:hover, .btn--ghost:focus { background: rgba(255,255,255,0.08); border-color: #fff; }

.card {
  background: #fff;
  border: 1px solid #e2e0da;
  border-radius: 8px;
  padding: 1.4em 1.5em;
}

.card-grid {
  display: grid;
  gap: 1.2em;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1.6em 0;
}

.timeline {
  border-left: 3px solid var(--accent);
  padding-left: 1.4em;
  margin: 1.6em 0;
}
.timeline li { margin-bottom: 1.2em; }
.timeline .year {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--accent);
  display: block;
  font-variant-numeric: tabular-nums;
}

/* Before/After toggle switch */
.ba-toggle-bar {
  display: flex;
  align-items: center;
  gap: 1em;
  flex-wrap: wrap;
  background: var(--surface);
  color: var(--text-on-dark);
  padding: 1em 1.2em;
  border-radius: 8px;
  margin-bottom: 1.6em;
}
.ba-toggle-bar .ba-year-label {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ba-switch {
  position: relative;
  width: 64px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: #3a3a3f;
  cursor: pointer;
  padding: 0;
}
.ba-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.15s ease;
}
@media (prefers-reduced-motion: reduce) {
  .ba-switch::after { transition: none; }
}
.ba-switch[aria-checked="true"]::after { transform: translateX(30px); }
.ba-compare-btn { margin-left: auto; }

.ba-columns { display: grid; gap: 1.2em; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .ba-columns.compare { grid-template-columns: 1fr 1fr; }
}
.ba-col-label {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3em;
  display: block;
}
.ba-single [data-col="after"] { display: none; }
.ba-single.show-after [data-col="before"] { display: none; }
.ba-single.show-after [data-col="after"] { display: block; }

.ba-criterion {
  border: 1px solid #e2e0da;
  border-radius: 8px;
  padding: 1.1em 1.3em;
  background: #fff;
  margin-bottom: 1em;
}
.ba-criterion h3 { margin-top: 0; }

.ba-static-table th, .ba-static-table td { vertical-align: top; }
.ba-static-table caption { text-align: left; font-weight: 600; margin-bottom: 0.6em; }

.faq-item { border-bottom: 1px solid #ddd; padding: 1em 0; }
.faq-item h3 { margin: 0 0 0.4em; }

.divider-motif {
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  margin: 2em 0;
  border: none;
}

.callout {
  border-left: 4px solid var(--accent);
  background: #fbeee7;
  padding: 1em 1.2em;
  border-radius: 0 6px 6px 0;
  margin: 1.6em 0;
}
.callout--warning { border-color: var(--warning); background: #f7e3dc; }

.resort-list { list-style: none; margin: 0; padding: 0; }
.resort-list li {
  border: 1px solid #e2e0da;
  border-radius: 8px;
  padding: 1em 1.3em;
  margin-bottom: 1em;
  background: #fff;
}
.resort-list h3 { margin: 0 0 0.3em; }
.status-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  background: var(--success);
  color: #fff;
  margin-left: 0.5em;
}
.status-tag--verify { background: var(--warning); }
