/*
 * ActivaViva – shared premium destination editorial standard, 2026-11-13.
 * Opt-in only: add class av-premium-editorial-standard to the SEO editorial
 * section and include /assets/av-premium-editorial-style-20261115-v3.css.
 * Currently applies to Ibiza and Barcelona in 7 languages.
 * Future editorial destinations can opt in without duplicating typography.
 */
section.seo-auto-editorial.av-premium-editorial-standard {
  --av-editorial-text: #17201f;
  --av-editorial-accent: #087f8d;
  color: var(--av-editorial-text);
}
section.seo-auto-editorial.av-premium-editorial-standard .seo-auto-editorial-heading {
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto 2rem !important;
  text-align: left !important;
}
section.seo-auto-editorial.av-premium-editorial-standard .seo-auto-editorial-heading > .eyebrow {
  width: 100%;
  max-width: 900px !important;
  text-align: left !important;
}
section.seo-auto-editorial.av-premium-editorial-standard .seo-auto-editorial-heading > h2 {
  width: 100% !important;
  max-width: 900px !important;
  font-size: clamp(2.35rem, 5vw, 4.8rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -.035em !important;
  color: var(--av-editorial-text) !important;
  text-align: left !important;
  margin: 0 !important;
}
section.seo-auto-editorial.av-premium-editorial-standard .seo-auto-editorial-heading > h2 > span {
  color: var(--av-editorial-accent) !important;
}
section.seo-auto-editorial.av-premium-editorial-standard .seo-auto-editorial-heading > p:last-child {
  width: 100% !important;
  max-width: 900px !important;
  margin: 1.25rem 0 0 !important;
  font-size: 1.08rem !important;
  line-height: 1.75 !important;
  font-weight: 400 !important;
  color: var(--av-editorial-text) !important;
  text-align: left !important;
}
section.seo-auto-editorial.av-premium-editorial-standard .seo-auto-editorial-grid {
  width: 100%;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
section.seo-auto-editorial.av-premium-editorial-standard .seo-auto-editorial-grid :is(h3,p,li) {
  color: var(--av-editorial-text) !important;
  text-align: left !important;
}
section.seo-auto-editorial.av-premium-editorial-standard .seo-auto-editorial-grid h3 {
  font-size: 1.17rem !important;
  line-height: 1.35 !important;
}
section.seo-auto-editorial.av-premium-editorial-standard .seo-auto-editorial-grid :is(p,li) {
  font-size: 1rem !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
}
section.seo-auto-editorial.av-premium-editorial-standard .seo-auto-editorial-grid li strong {
  font-weight: 700 !important;
}
/* Card typography stays distinct from editorial body copy. */
section.seo-auto-editorial.av-premium-editorial-standard .seo-auto-editorial-card {
  color: #fff !important;
}
section.seo-auto-editorial.av-premium-editorial-standard .seo-auto-editorial-card h3 {
  color: #fff !important;
  font-size: 1.45rem !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
}
section.seo-auto-editorial.av-premium-editorial-standard .seo-auto-editorial-card p {
  color: rgba(255,255,255,.85) !important;
  font-size: .78rem !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
}
section.seo-auto-editorial.av-premium-editorial-standard a:not(.seo-auto-editorial-card),
section.seo-auto-editorial.av-premium-editorial-standard a:not(.seo-auto-editorial-card):visited {
  color: var(--av-editorial-accent) !important;
}
section.seo-auto-editorial.av-premium-editorial-standard
a:not(.seo-auto-editorial-card):is(:hover,:focus-visible) {
  color: #B85C00 !important;
}
section.seo-auto-editorial.av-premium-editorial-standard
a:not(.seo-auto-editorial-card):visited {
  color: #B85C00 !important;
}
section.seo-auto-editorial.av-premium-editorial-standard
a:not(.seo-auto-editorial-card):focus-visible {
  outline: 2px solid #065d68;
  outline-offset: 2px;
}
/* Sources use the same 900px column and the same compact typography. */
section.seo-auto-editorial.av-premium-editorial-standard :is(
  .av-premium-editorial-sources,.ibiza-editorial-sources,.ibiza-local-sources
) {
  width: 100% !important;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: .9rem !important;
  line-height: 1.65 !important;
  color: var(--av-editorial-text) !important;
  text-align: left !important;
}
section.seo-auto-editorial.av-premium-editorial-standard :is(
  .av-premium-editorial-sources,.ibiza-editorial-sources,.ibiza-local-sources
) :is(p,li,strong) {
  font-size: .9rem !important;
  line-height: 1.65 !important;
  color: var(--av-editorial-text) !important;
}
section.seo-auto-editorial.av-premium-editorial-standard :is(
  .av-premium-editorial-sources,.ibiza-editorial-sources,.ibiza-local-sources
) strong {
  font-weight: 700 !important;
}
/* Explicit, unscoped Ibiza translated-card sizing. */
section.seo-auto-editorial.av-premium-editorial-standard.ibiza-translated-editorial .ibiza-local-cards {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}
section.seo-auto-editorial.av-premium-editorial-standard.ibiza-translated-editorial .ibiza-local-cards > .seo-auto-editorial-card {
  display: block !important;
  height: 250px !important;
  min-height: 250px !important;
  padding: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  color: #fff !important;
  background: #102c37 !important;
  border-radius: 14px !important;
}
section.seo-auto-editorial.av-premium-editorial-standard.ibiza-translated-editorial .ibiza-local-cards > .seo-auto-editorial-card img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
}
section.seo-auto-editorial.av-premium-editorial-standard.ibiza-translated-editorial .ibiza-local-cards .seo-auto-editorial-overlay {
  position: absolute !important;
  inset: auto 0 0 !important;
  height: 38% !important;
  background: linear-gradient(transparent, #031f2dd1) !important;
}
section.seo-auto-editorial.av-premium-editorial-standard.ibiza-translated-editorial .ibiza-local-cards .seo-auto-editorial-copy {
  position: absolute !important;
  z-index: 1 !important;
  left: 1.25rem !important;
  right: 1.25rem !important;
  bottom: 1.15rem !important;
}
@media (max-width: 650px) {
  section.seo-auto-editorial.av-premium-editorial-standard.ibiza-translated-editorial .ibiza-local-cards {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  section.seo-auto-editorial.av-premium-editorial-standard.ibiza-translated-editorial .ibiza-local-cards > .seo-auto-editorial-card {
    grid-column: auto !important;
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
  }
}

/* Correct legacy inline 6-column grid on Ibiza only. */
@media (max-width: 650px) {
  section.seo-auto-editorial.av-premium-editorial-standard
  .seo-auto-editorial-grid.ibiza-german-editorial-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  section.seo-auto-editorial.av-premium-editorial-standard
  .seo-auto-editorial-grid.ibiza-german-editorial-grid > .seo-auto-editorial-card {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Premium-SEO design token – Barcelona reference, 2026-11-14.
   This section-only override supersedes destination-specific legacy gradients. */
section.seo-auto-editorial.av-premium-editorial-standard {
  --av-premium-page-background: #FFFDF7;
  background-color: var(--av-premium-page-background) !important;
  background-image: none !important;
}
