/* PGA — Widgets del tour (Elementor): base común. La usan todos los widgets PGA Tour *.
   Todo va dentro de .pga-tt (clase raíz de cada widget) para no chocar con Elementor ni con el tema.
   El texto llega LIMPIO de los campos SCF (párrafos, listas, negritas, subtítulos): el diseño va sobre las etiquetas.
   Colores = variables --idx-* (las de la marca ya están en Elementor). */

/* Variables nuevas de las tabs (pga/base.css). Mientras no estén en las variables globales de Elementor,
   se definen aquí, en un solo lugar; cuando se creen allí, este bloque se quita. */
:root {
  --idx-primary-soft: #FEF0E0;
  --idx-muted-light: #8A909A;
  --idx-faint: #C6CFD7;
  --idx-secondary-soft: #E1EAF3;
  --idx-soft-light: #F9FBFD;
  --idx-shadow: rgba(11, 42, 74, .14);
  --idx-success: #2F8F5B;
  --idx-success-soft: #E2EFE8;
  --idx-danger: #B65A5A;
  --idx-danger-soft: #F5E8E8;
  --idx-overlay: rgba(11, 42, 74, .95);      /* fondo del visor de fotos a pantalla completa (de --idx-dark) */
  --idx-overlay-soft: rgba(11, 42, 74, .45); /* translúcido sobre fotos: lupa y sombras de la galería */
}

.pga-tt {
  --pga-ease: cubic-bezier(.22, 1, .36, 1);
  font-family: var(--idx-font-body, "Albert Sans"), sans-serif;
}
.pga-tt *, .pga-tt *::before, .pga-tt *::after { box-sizing: border-box; }

.pga-tt .ico {
  display: block; width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Texto del cliente (lo que viene del editor de SCF) ── */
.pga-tt .md { color: var(--idx-text); font-size: 1rem; line-height: 1.7; }
.pga-tt .md > * { margin: 0; }
.pga-tt .md > * + * { margin-top: .875rem; }
.pga-tt .md strong { color: var(--idx-title); font-weight: 600; }
.pga-tt .md h3 { margin: 1.75rem 0 0; color: var(--idx-title); font-family: var(--idx-font-title, "Rubik"), sans-serif; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.pga-tt .md h4 { margin: 1.25rem 0 0; color: var(--idx-title); font-family: inherit; font-size: .9375rem; font-weight: 700; line-height: 1.35; text-transform: none; letter-spacing: 0; }
.pga-tt .md > h3:first-child,
.pga-tt .md > h4:first-child { margin-top: 0; }
.pga-tt .md h3 + *, .pga-tt .md h4 + * { margin-top: .5rem; }
.pga-tt .md a { color: var(--idx-secondary); text-decoration: underline; text-underline-offset: 3px; }
/* precio destacado en el texto de "Price & group size" (render.php → pga_tt_price_dom): la cifra grande, el resto normal */
.pga-tt .md .tt-price { color: var(--idx-text); font-family: var(--idx-font-body), sans-serif; font-size: 1rem; font-weight: 500; line-height: 1.25; text-transform: none; }
.pga-tt .md .tt-price strong { color: inherit; font-weight: inherit; }
.pga-tt .md .tt-price__n { margin-right: .25rem; color: var(--idx-title); font-family: var(--idx-font-title, "Rubik"), sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: -.01em; }

/* listas: punto azul; sublistas: punto gris; numeradas: número azul */
.pga-tt .md ul,
.pga-tt .md ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.pga-tt .md li { position: relative; margin: 0; padding-left: 1.125rem; break-inside: avoid; }
.pga-tt .md ul > li::before {
  position: absolute; top: .68em; left: .1rem; width: .375rem; height: .375rem;
  content: ""; border-radius: 50%; background: var(--idx-secondary);
}
.pga-tt .md li ul { margin-top: .4rem; }
.pga-tt .md li ul > li::before { background: var(--idx-muted-light); }
.pga-tt .md ol { counter-reset: md; }
.pga-tt .md ol > li { padding-left: 1.75rem; counter-increment: md; }
.pga-tt .md ol > li::before { position: absolute; top: 0; left: 0; content: counter(md) "."; color: var(--idx-secondary); font-weight: 700; }

/* listas largas a 2 columnas: la clase la pone el widget al dibujar (pga_tt_text_html), no viene en el texto */
@media (min-width: 640px) {
  .pga-tt .md-list--cols { display: block; columns: 2; column-gap: 2.5rem; }
  .pga-tt .md-list--cols > li + li { margin-top: .4rem; }
}
@media (max-width: 639px) {
  .pga-tt .md-list--short { display: block; columns: 2; column-gap: 1.25rem; }
  .pga-tt .md-list--short > li + li { margin-top: .4rem; }
}

/* tablas dentro del texto */
.pga-tt .md table { width: 100%; max-width: 36rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pga-tt .md th,
.pga-tt .md td { padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--idx-border); text-align: left; font-weight: 400; }

/* aviso solo en el editor de Elementor cuando el campo del tour está vacío (en la web no se pinta nada) */
.pga-tt-empty {
  padding: .875rem 1rem; border: 1px dashed var(--idx-border); border-radius: 8px;
  color: var(--idx-muted-light); font: 500 .8125rem/1.4 var(--idx-font-body, "Albert Sans"), sans-serif;
}
