/* Turisme Horta Sud · estilos del tema hijo
 * Clases reutilizables desde Elementor (Avanzado › Clases CSS):
 *   ths-tarjeta  → la tarjeta sube un poco y gana sombra al pasar el ratón
 *   ths-zoom     → la imagen interior se acerca suavemente al pasar el ratón
 *   ths-borde    → el borde se resalta en verde al pasar el ratón
 *   ths-sin-foto → fondo verde pálido para tarjetas sin imagen
 */

/* Interacción general */
a, .elementor-button, .elementor-item { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
::selection { background: var(--e-global-color-accent, #98C400); color: var(--e-global-color-ths0003, #1E3B00); }
:focus-visible { outline: 3px solid var(--e-global-color-accent, #98C400); outline-offset: 3px; }

.ths-tarjeta { transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s cubic-bezier(.16, 1, .3, 1); }
.ths-tarjeta:hover, .ths-tarjeta:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30, 59, 0, .18); }

.ths-zoom img { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.ths-zoom .elementor-widget-image { overflow: hidden; border-radius: 999px; }
.ths-zoom:hover img, .ths-zoom:focus-visible img { transform: scale(1.06); }
.ths-zoom:hover .elementor-heading-title { color: var(--e-global-color-ths0003, #1E3B00); }

.ths-borde { transition: border-color .25s ease, box-shadow .25s ease; }
.ths-borde:hover { border-color: var(--e-global-color-secondary, #639219) !important; box-shadow: 0 10px 28px rgba(30, 59, 0, .10); }

/* Tarjetas de los listados (plantilla de bucle) */
.ths-sin-foto { background-color: var(--e-global-color-54bf362, #EAF3CC);
	background-image: radial-gradient(circle at 30% 30%, #F5F9EA 0 30%, transparent 31%), radial-gradient(circle at 75% 70%, #DCEBB0 0 22%, transparent 23%); }
.ths-card-foto img { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.e-loop-item:hover .ths-card-foto img { transform: scale(1.05); }
.e-loop-item:hover .elementor-heading-title a, .e-loop-item:hover .elementor-heading-title { color: var(--e-global-color-ths0003, #1E3B00); }

/* Contenido de las fichas */
.ths-cuerpo { max-width: 72ch; }
.ths-cuerpo h2 { font-size: 28px; font-weight: 900; color: var(--e-global-color-primary, #2F5D00); margin: 40px 0 12px; line-height: 1.1; }
.ths-cuerpo h3 { font-size: 22px; font-weight: 900; color: var(--e-global-color-primary, #2F5D00); margin: 32px 0 10px; }
.ths-cuerpo p { margin: 0 0 18px; }
.ths-cuerpo ul { padding-left: 22px; margin: 0 0 18px; }
.ths-cuerpo figure { margin: 28px 0; }
.ths-cuerpo figure img { width: 100%; height: auto; border-radius: 24px; display: block; }

@media (prefers-reduced-motion: reduce) {
	.ths-tarjeta, .ths-zoom img, .ths-borde, .ths-card-foto img, a, .elementor-button { transition: none !important; }
	.ths-tarjeta:hover { transform: none; }
	.ths-zoom:hover img, .e-loop-item:hover .ths-card-foto img { transform: none; }
}
