Introduction

Changes in the foraging behaviour of different ungulate species and grazing intensity are key biotic factors that drive functional dynamics of plant communities, particularly in ecosystems where vegetation and ungulates have coevolved due to a long history of trophic interaction (Ellison 1960; Milchunas and Lauenroth 1993; Hobbs 1996; Augustine and McNaughton 1998). For instance, ungulate species composition and grazing intensity control temporal and spatial patterns of primary productivity (Frank et al. 2016; Velamazán et al. 2023), enhance nitrogen and carbon cycling (Frank et al. 1994; Hu et al. 2016), modify the nutrient content of growing plants (McNaughton 1985; Doughty 2017) and ultimately determine plant community composition and functional traits (Niu et al. 2016; Hernández et al. 2019). Because ungulates can drive all these ecological processes, we can expect that different grazing patterns can modulate the landscape-scale response of vegetation to resource availability and environmental conditions.

Previous studies have highlighted that grazing intensity is the main driver of long-term vegetation changes in humid regions, where annual and inter-annual precipitation variation is low (Vetter 2005). Moreover, the combined effect of low herbivore pressure and rising temperatures increase shrub areas in cold and dry areas, such as tundra biomes (Olofsson and Post 2018). In arid and semi-arid ecosystems, some authors have highlighted the importance of stochastic abiotic factors, such as droughts, as a significant driver of ecosystem functioning, especially affecting vegetation in overgrazed areas (Sullivan and Rohde 2002). Together, these studies suggest an interrelated influence of grazing and climate to determine landscape structure, composition, and functioning. These studies also highlight the importance of investigating how different grazing contexts (e.g., livestock, wild herbivores) affect vegetation responses to a variable climatic condition at different spatial and temporal scales.

Historically, domestic or wild ungulates are important drivers of ecological succession and ecosystem heterogeneity (Perevolotsky and Seligman 1998; San Miguel-Ayanz et al. 2010). In the past, livestock has replaced wild ungulates and occupied the most accessible grasslands due to human economic activities, while wildlife was displaced to more inaccessible ones (San Miguel-Ayanz et al. 2010; Giguet-Covex et al. 2014). Grasslands are one of the world's major ecosystems, covering about one-third of the earth's land surface (Bengtsson et al. 2019). However, in the past years, the abandonment of traditional practices and the climatic changes have been transforming agro-pastoral systems, a dynamic process that is still ongoing (Bowen et al. 2007). In fact, between 1990 and 2010, traditional grazing livestock in Europe decreased by 25% (Navarro and Pereira 2015). The progressive abandonment of these traditional practices is causing the decline of cultural landscapes (García-Ruiz et al. 2020) and allowing a consecutive process of passive rewilding (Nogués-Bravo et al. 2016; Pettorelli et al. 2019), that is a passive recolonization of wild herbivores (Speed et al. 2019). Understanding how ecosystems respond to landscape changes after land abandonment is a complex issue that requires local level information on land use change, climate and ungulates (MacDonald et al. 2000). Grazing pressure of wild and domestic ungulate species on Mediterranean landscapes differ because wild grazing contexts usually show a lower number of individuals and higher number of species when compared with livestock production. More important, the foraging behaviour of wild species is driven by a complex pattern of intra-specific species interaction and by a full dependence of the species on the ecosystem (Dupke et al. 2017).

Because global temperature is expected to increase in the coming years (Tebaldi and Knutti 2010), the combined changes in climate and land uses can affect landscape functioning and grasslands ecosystem services (Maestre et al. 2022) which can increase uncertainty as to whether the vegetation will persist in its original regime or shift to new community composition and functioning (Kaarlejärvi et al. 2015). Hence, we need to deepen our knowledge on reconstructing ecosystem responses to climate under different conditions of predominant grazing interactions (domestic or wild herbivores) and at large spatial and temporal scales. This scientific framework allows a retrospective perception of the ecological processes of these systems that can be extrapolated to future conditions and thus to better understand how Mediterranean landscapes function under different management scenarios.

Determining long-term ecological processes related to the interaction between climate, herbivory and vegetation at the landscape scale is difficult because quantitative measurements of vegetation are needed, and these data are often not available. However, in the last decade, analyses of remote sensing data have progressed enormously, providing different tools to evaluate landscape changes and trophic interactions at different spatial and temporal scales (Barbosa et al. 2020; Velamazán et al. 2023). There is a diverse collection of publicly accessible images of reflectance data from around the globe with unprecedented spatial, temporal, and radiometric resolutions (Babcock et al. 2021). All this information makes it possible to revisit fundamental ecological questions about the ecosystem functioning of different natural systems in a more holistic manner. For example, remote sensing data offer a unique opportunity to evaluate very long relationships between climate, vegetation, and herbivory over large regions, based on vegetation indices and, particularly, the Normalised Difference Vegetation Index (NDVI) (Pettorelli et al. 2011). Here, we have used images obtained from several Landsat and MODIS satellites to reconstruct vegetation indices time series as a proxy for temporal tendencies and oscillation of primary productivity and biomass.

Using a Bayesian approach to combine long-term vegetation greenness and climate data from two key landscapes, we studied the ecological roles of wild and domestic ungulates in determining the vegetation responses to climate and the long-term trends of semi-arid grassland vegetation. The studied landscapes show high similarities in both vegetation type and long-term climate conditions, albeit their contrasting managing conditions: one dominated by wild ungulates and the other dominated by domestic ungulates. Using as reference these contrasting grazing conditions, we ask: (1) How do long-term climate conditions affect landscape-scale primary productivity in each studied grazing context? (2) How do rewilding or the maintenance of traditional grazing systems determine the temporal tendencies of ecosystem primary productivity? We expect that areas with a long history of transhumant grazing practice will result in a sustainable production system with grassland ecosystem with high temporal stability, while areas where grazing has been limited and reduced over the years, will trend to a secondary succession towards an increase of shrublands. We also expect that both systems will follow the seasonality pattern typical in the Mediterranean ecosystems (Mooney et al. 1974). However, we expect that the most intensified grazed areas follow closely the seasonality pattern, and they are more controlled by climatic factors as they are more dependent on the water balance (Padilla and Pugnaire 2007). These results can easily be extended to other scenarios of change in traditional activities and land uses.

Methods

Study area

This study was conducted at two sites in the Sierras de Cazorla, Segura, and Las Villas Natural Park (Cazorla Natural Park) with an area of 2143 km2, one of Europe’s largest protected areas located in south-eastern Spain. The climate is Mediterranean, with annual rainfall between 300 and 1600 mm and an average temperature of 12–16 °C (Aguilera-Alcalá et al. 2022). We focused our study on two areas of this mountainous region: Los Campos de Hernán Pelea (CHP) and El Calar de Juana (CJ), located approximately 15 km apart (Fig. 1). Both study areas have similar topographic characteristics with altitudes ranging between 1600 and 1700 m, and similar climate conditions (see Supplemental Material from Fig. S.1. to Fig. S.2.). Annual rainfall in CHP is 670 mm, with a maximum of 1065 mm. The average temperature is 14.65 °C, with maximum temperatures up to 37 °C and minimum temperatures down to − 6 °C. CJ has an average annual rainfall of 630 mm, with a maximum of 958 mm. The average temperature in CJ is 14 °C, and it can fluctuate between a maximum of 36 °C and a minimum of − 7 °C. In both study areas, maximum rainfall occurs in December and minimum rainfall in July and August, coinciding with maximum temperatures.

Fig. 1
figure 1

Map of the study areas, El Calar de Juana (CJ; wild herbivory area) and Los Campos de Hernán Pelea (CHP; transhumant livestock herbivory area) in the Sierras de Cazorla, Segura, and Las Villas Natural Park (Spain)

Both CHP and CJ are situated within an area characterised by the same geomorphological, geological, and edaphic characteristics. Soils of both study localities are calcareous in origin and are diagnostic of scarce development generally lacking horizon development. The dominant soils are Calcaric Regosols and Leptosols (IUSS Working Group WRB 2015), typically located on fragmented bedrock. Continuous grazing practices over the years have induced modifications of the soil in both areas, with this effect being greater in CHP, due to its grazing history. These changes have resulted in distinct characteristics in these areas, mainly shaped by the presence of herbaceous vegetation adapted to grazing.

Both study areas are covered by forests, meadows, and shrublands, although the tree cover is very limited in both study areas. Most of the territory is covered by grassland, dotted with scrubland. Grasslands are dominated by Festuca hystrix, often accompanied by species like Poa ligulata, Koeleria vallesiana, and small woody plants from genera Thymus sp., Helianthemum sp., Arenaria sp. and others. Additionally, some areas feature grasslands dominated by Poa bulbosa. Subnitrophilous grasslands rich in endemic species appear in well-illuminated clearings within discontinuous shrublands and perennial grasslands of variable coverage, often accompanied by species from genera such as Limonium sp., Filago sp., Linaria sp., among others. Shrublands are characterized by low growth due to wind and snow exposure, dominated by Juniperus sabina, along with species like Prunus prostrata, Berberis vulgaris, Daphne oleoides, and others, including hawthorns like Erinacea anthyllis and Vella spinosa. Forests are scarce and disperse. They are primarily Pinus nigra subsp. salzmanii, with accompanying undergrowth like Juniperus phoenicea, J. sabina, and J. communis. Holm oak forests of Quercus rotundifolia appear stunted at higher altitudes due to colder temperatures, with undergrowth species including Lonicera arborea, Crataegus monogyna, and Sorbus aria (Valle Tendero et al. 2004; Benavente 2008; Gómez-Mercado 2011). In the past, scrub encroachment in the study area was partially managed through controlled fires. However, this practice was prohibited in 1986, when the Sierras de Cazorla, Segura, and Las Villas Natural Park was declared.

The main difference between CJ and CHP is the presence of domestic livestock. Wild ungulates such as deer (Cervus elaphus), fallow deer (Dama dama), mouflon (Ovis orientalis), and Iberian ibex (Capra pyrenaica) (Martínez Martínez 2002) can access both study areas. CJ is located in the Cazorla Reserve Area, where livestock access was restricted since 1986 and only wild ungulates can access. CHP is a communal grazing plateau, where transhumance has been the main practice for decades. Transhumance consists of the seasonal migration of livestock to optimize the exploitation of pastures. Livestock moves between summer pastures in highlands at northern latitudes and winter pastures in lowlands at more southern latitudes (Oteros-Rozas et al. 2012). Due to this regimen, there are two seasons in CHP, related to the presence (from June to November) or absence of livestock (from December to May). Most herds (> 90%) are composed of sheep, but there are also goats, cattle, and horses (Aguilera-Alcalá et al. 2022). Wild ungulate’s average yearly density in CHP is around 3.9 individuals per km2 (field data), and between 6 and 13 individuals per km2 in CJ according to the information provided by the Junta de Andalucía of the hunting censuses carried out in the Reserva Andaluza de Caza de Cazorla (R.A.C. Cazorla). However, in CHP from June to November, the livestock adds to the wild ungulates density between 131 and 163 animals per km2 according to the census provided by Agrupación de Defensa Sanitaria Ganadera Los Campos (ADSG). In addition, transhumant livestock is very controlled by shepards and, during half of the year, these animals are not present in the area as part of a strategy to optimise grassland utilisation at the landscape scale. Consequently, the grazing intensity in these two areas is quite different due to the dissimilarities in herbivory density and management regimes, as described by other authors (Rebollo and Gómez-Sal 2004). Therefore, CHP and CJ are two ideal study zones for determining landscape changes due to the different land use management and evaluating the consequences of maintenance or abandonment of traditional farming practices.

Datasets

Primary productivity and biomass

We used the Normalized Difference Vegetation Index (NDVI) to detect seasonal and interannual changes in primary productivity and biomass (Huete et al. 2002; Hamel et al. 2009), especially when vegetation cover is low (Gamon et al. 1995; Xu et al. 2012). NDVI has also proved to be useful to evaluate long-term interactions between ungulates and vegetation (Pettorelli et al. 2011), including the effect of grazing on spatial and temporal changes of primary productivity (Navalgund et al. 2007; Barbosa et al. 2020; Velamazán et al. 2023). To build a complete and consistent NDVI time series, we used a Bayesian model to combine the mean NDVI data for each area and the satellite images from several sensors: Landsat 5 ETM (L5), Landsat 7 ETM + (L7), Landsat 8 OLI (L8), and MODIS from the NASA Land Processes Distributed Active Archive Center (LP DAAC) (https://lpdaac.usgs.gov/). One of the major advantages of the Bayesian learning procedure is the possibility of introducing the information of one model in another as a previous or as subjective information to the model. We used this methodology as there is not always a useful image for each month due to the presence of clouds, shadows, snow, or the idiosyncrasies of the satellites. Although all these satellites have the same 16-day orbital repeat they do not all pass at the same instant, so while one may have passed in cloudy weather, the next may have passed in an open sky. Besides, the satellites were launched in different years, so they do not all cover the same time interval. We selected images for each sensor that had a minimum of 70% good pixels (no clouds, shadows, snow, or water) within the study area. We choose only areas of pastures and grasslands by masking pixels without tree cover fraction using Copernicus Global Land Cover Layers (Buchhorn et al. 2020). To process the satellite data, we used the platform Google Earth Engine (GEE) (Gorelick et al. 2017).

Climate data

We obtained precipitation and temperature data from ERA5, the latest climate reanalysis produced by the ECMWF (European Centre for Medium-Range Weather Forecasts) available at monthly time resolution from Copernicus Climate Data Store (cds.climate.copernicus.eu) which combines model data with observations from across the world. We obtained data from 1990 to 2019, from the 2 m average, minimum, and maximum monthly air temperature, as well as monthly total precipitation. We also used precipitation data to obtain cumulative precipitation for one, three, and twelve months. We did not include maximum and minimum temperatures in the model as they are strongly correlated with the average temperature (> 0.80) and the best models were those that included the average temperature. To process the climate data, we used the platform Google Earth Engine (GEE) (Gorelick et al. 2017).

Statistical analysis

Building the NDVI time series

To compare the relative importance of climate variables on primary productivity between the two study areas (CHP and CJ), we built two models, one for each of them. We used a multivariate autoregressive state-space model (MARSS) developed by Hinrichsen and Holmes (2009) because of its capability to infer the underlying trends from several observations without the need for prior variance estimates or complete observation datasets (Ward et al. 2010). We used this approach through the MARSS R-package (Holmes et al. 2012) to fill gaps in the NDVI time series and study its relationship with the climatic variables. The MARSS models include a process (1) model and an observation model (2).

$${\varvec{x}}_{t} \, = \,{\varvec{B}}x_{{\left( {t - 1} \right)}} \, + \,{\varvec{u}}\, + \,{\varvec{Cc}}_{t} \, + \,{\varvec{w}}_{t} {;}\,{\varvec{w}}_{t} \,\sim \,MVN\left( {0,{\varvec{Q}}} \right)$$
(1)
$${\varvec{y}}_{t} = {\varvec{Zx}}_{t} + {\varvec{A}} + {\varvec{v}}_{t} {;}{\varvec{v}}_{t} \sim MVN\left( {0,{\varvec{R}}} \right)$$
(2)

In our case, the multivariate hidden process is given by Eq. 1, where the response variable \({{\varvec{x}}}_{t}\) is the NDVI at time t. The \({\varvec{B}}\) matrix indicates the relation of the states over time. The \({\varvec{u}}\) vector indicates the underlying stochastic growth rates. To determine the effect of climatic covariates the matrix \({{\varvec{c}}}_{t}\) was included in Eq. 1. This matrix consists of data about monthly precipitation, cumulative precipitation over the previous 3 and 12 months, and monthly average temperature. To ease comparisons between the effect of each covariate, this matrix was standardised (mean of 0 and standard deviation of 1). The matrix \({\varvec{C}}\) about how covariates interact with the response variable is set as unconstrained so that the effect of each covariate is flexible when fitting the model. The process error matrix at time t, \({{\varvec{w}}}_{t}\), has a multivariate normal distribution with a mean of zero and a covariance matrix \({\varvec{Q}}\).

The observation model (Eq. 2) is defined by the matrix \({{\varvec{y}}}_{t}\) composed of the NDVI time series obtained from the satellite images: L5, L7, L8, and MODIS. The \({{\varvec{y}}}_{t}\) matrix was standardised (mean of 0 and standard deviation of 1). The \({\varvec{Z}}\) matrix defines how the observations relate to the true response variable \({{\varvec{x}}}_{t}\). We assumed that each observation has the same trajectory since the same area is observed using different sensors. Consequently, matrix \({\varvec{Z}}\) was set as a 4 × 1 matrix of ones. The vector \({\varvec{a}}\) specifies the bias between the observations and the true response variable and it is set as an n × 1 vector of biases, the first of which is set equal to 0. \({{\varvec{v}}}_{t}\) specifies the observational errors of serially uncorrelated errors with a mean zero and a \({\varvec{R}}\) covariance matrix. We considered models that have the same level of process-error variance or that present covariance between the process errors, as we assume that they all contemplate constant observation errors.

We obtained the hidden state-space prediction from 500 iterations to generate estimates and fill in the missing NDVI data with a 95% credible interval (CI). The model has also been used to complete the gaps for the temporal series to solve the lack of information that occurs due to clouds. We choose the model with the lowest AICc (Hurvich and Tsai 1989) (see Table S.2 and S.3 in the Supplemental Material). We also graphically analysed the distribution of MARSS smoothing residuals, which are the model residuals using the expected value of \({x}_{t}\) conditioned on all the data, t = 1 to T (Holmes 2014). We used the distribution of residuals to analyse how well the models fit the data (Holmes 2014) (see Fig. S.4 to Fig. S.11 in the Supplemental Material). We tested that the model one-step-ahead residuals (innovations) have no temporal trend, and they fall within the 95% CI. We also tested that the Cholesky standardized model smoothation residuals from the observed data and the states have no temporal trend. We performed a residuals normality test to check the correlation between observed residuals and expected residuals under normality.

NDVI long-term trends

To determine whether changes in vegetation biomass occurred due to the different herbivory regimes, we used the resulting data from the MARSS model (see Fig. S.3 in the Supplementary Material) to perform a linear regression model between time and NDVI. This procedure was performed with a Hamiltonian Monte Carlo sampler using the R package brms (Bürkner 2021). To fit both models, we specify four chains of 1000 iterations, half of which are used for warm-up. Model diagnostics indicate an adequate convergence of the chains. We tested chain convergence by trace plots and the Gelman-Rubin statistic (Rhat < 1.1) (Gelman and Hill 2006). Bulk and tail effective sample sizes of the bulk and tail were greater than 400 for all parameters following Vehtari et al. 2019 recommendations. We graphically tested posterior predictive controls by comparing the observed outcome variable and the simulated data sets of the posterior predictive distribution. We considered that there is strong evidence of an effect when the 95% credible interval (CI) from the posterior distribution does not overlap 0.

Results

We compiled images from four satellites (L5, L7, L8 and MODIS) to reconstruct the NDVI time series (see Table S.1 in the Supplemental Material). We used 883 and 838 NDVI records to build the CHP model (transhumant livestock herbivory) and the CJ model (wild herbivory), respectively (Table S1). Thus, we obtained NDVI values and CI for the 1990–2019 period (see Fig. S3, S4 and Fig. S8 in the Supplemental Material). We choose the best models based on the lowest AICc for both study areas (Table S1 and S2), in which we assumed that all satellite records have the same hidden trajectory. The best Bayesian model structure (lowest AICc) used to retrieve the monthly NDVI indicates that imagery from different satellites has a non-constrained relation between states, non-constant growth rate, independent process errors, similar observation variance and no interactions (see Tables S2 and S3 in the Supplemental Material). Using the Bayesian model with the lowest AICc, we predicted the one-step-ahead (innovations) residuals to check the model fit. Residuals fall within the CI, they have no temporal trend (see Fig. S5 and S10 in the Supplemental Material) and follow the normality test (see Fig. S7 and S11 in the Supplemental Material), indicating the model fits the data.

In the CJ model (wild herbivores dominance) (Fig. 2), precipitation accumulated in the previous year was the only covariate that has a strong statistical effect on primary productivity (mean = 0.19, 95% CI [0.05, 0.033]). In contrast, in the CHP model (transhumant livestock dominance) (Fig. 2), the accumulated precipitation during the previous three months showed a strong positive statistical effect on primary productivity (0.29 [0.06, 0.51]). We found strong statistical support for the temperature effect on primary productivity in the CHP model (− 0.11 [− 0.27, 0.05]). In CJ, however, monthly temperature showed no strong statistical effect. These results suggest that primary productivity in CJ depends more on annual cumulative rainfall whereas primary productivity in CHP is more closely influenced by seasonal variations in climatic conditions.

Fig. 2
figure 2

Effect size and 95% credible intervals (C.I.) of the different covariates on the Normalized Difference Vegetation Index (NDVI) for the 1990–2019 period in, a: El Calar de Juana (CJ; wild herbivory area); b: Los Campos de Hernán Pelea (CHP; transhumant livestock herbivory area). All values are standardized to the same scale and range

As expected, primary productivity in both study areas showed a similar seasonal pattern. That is, both study zones have two productivity maxima, in spring and autumn, and two productivity minima, in winter and summer, which agrees with a typical Mediterranean climate seasonality (Fig. 3, Fig. S1, Fig S2). However, we also found significant differences between the primary productivity in most of the monthly values (Fig. 3). Furthermore, the maximum and minimum productivity values occur at different periods of the year for each study area. While in areas with only wild herbivory the maximum and minimum primary productivity occurs in May and September respectively, in the transhumant livestock area, maximum and minimum primary productivity occurs in June and August respectively. Therefore, the period of low primary productivity is longer in areas dominated by transhumant livestock than in areas with only wild herbivory. Interestingly, the annual NDVI oscillations (i.e., the difference between maxima and minima) are greater in CHP than in CJ. This pattern coincides with the results shown in Fig. 2, where the effect of seasonal precipitation is higher in CHP given that the intra-annual variability of biomass in CHP fluctuates more and more rapidly than in CJ.

Fig. 3
figure 3

Median monthly NDVI values obtained from the MARSS model of El Calar de Juana (CJ; wild herbivory area) in colour pink and Los Campos de Hernán Pelea (CHP; transhumant livestock herbivory area) in colour green. The NDVI value has been standardized to the same scale and range. The statistical significance is noted with the following codes: 0.001 '***', 0.01 '**' 0.05 '*'

Concerning the long-term trend of vegetation biomass, we found that CJ and CHP differ from each other. Specifically, we found that the vegetation biomass in CJ increased between 1990 and 2019 (2.32 × 10–3 [1.56 × 10–3, 3.08 × 10–3]). Whereas, in CHP, the mean growth rate is centred in zero (5.87 × 10–5 [-7.83 × 10–4, 8.68 × 10–4]), indicating a stable temporal pattern (Fig. 4). This shows that whereas in CJ the vegetation increases biomass throughout time, in CHP vegetation biomass has maintained stable. These results may indicate that while grazing and land use dynamics have been maintained over time in CHP, in CJ the dynamics between vegetation biomass, ungulates and climate have changed and resulted in a periodic increase in vegetation biomass, suggesting a tendency of shrub encroachment.

Fig. 4
figure 4

The long-term trend of the Normalized Difference Vegetation Index (NDVI) of the MARSS model time series of a.1: El Calar de Juana (CJ; wild herbivory area) and b.1: Los Campos de Hernán Pelea. Posterior distribution of the monthly NDVI increment built from a Bayesian linear model in a.2: El Calar de Juana and b.2: Los Campos de Hernán Pelea (CHP; transhumant livestock herbivory area). All values are standardized to the same scale and range

Discussion

Here, we highlight how ungulate herbivory in different grazing regimes (i.e., wild ungulates and transhumant livestock production) differently affects temporal trends of primary productivity and modulate the vegetation responses to climatic factors in semi-arid mountain areas. Where grazing intensity has decreased over time and only wild herbivores are present, we found that landscape-scale vegetation biomass has increased over the years. However, vegetation biomass remained stable throughout the study period (30 years) in areas where transhumant use was maintained. We also observed differences in the relative effect of climatic conditions and seasonality between areas with domestic and wild herbivory regimes. While temperature and seasonal precipitation affected the temporal dynamics of primary productivity in areas with transhumant livestock herbivory, we found that the variability of primary productivity mostly depended on annual precipitation in areas with only wild herbivory. These results highlight the importance of herbivores in defining how Mediterranean landscapes function and indicate how passive rewilding or livestock transhumant practices can affect the ecosystem's adaptability to climate conditions.

Climate and vegetation dynamics

We found that primary productivity dynamics in each study zone have fundamental differences in their responses to climate, albeit their similarity in geomorphological, geological, and edaphic characteristics, climatic conditions, and vegetation type. The long history of grazing, especially transhumance in CHP, has influenced the ecosystem, not only affecting its composition, but also shaping the structure of grassland soils and vegetation types. Both areas follow a seasonality pattern that characterises Mediterranean environments (Mooney et al. 1974). However, only in areas where livestock grazing remains, seasonal precipitation shows a positive effect on primary productivity and monthly temperature presents a negative effect. Indeed, grasslands react more immediately to climate effects than shrublands (Knapp and Smith 2001; Sala et al. 2012). Grassland species in semi-arid ecosystems present traits that support drought tolerance, although grasses usually rely on the upper layers of the soil profile. Therefore, unlike scrublands, they are highly determined by the amount of precipitation of the wet season (Knapp and Smith 2001; Sala et al. 2012) and the negative indirect effect of temperature from increased soil drought associated with higher evapotranspiration (Dulamsuren et al. 2013).

Although climate seasonality affects both grasslands and shrublands, the intensity of these effects can vary depending on vegetation type or herbivory intensity (Patton et al. 2007). In domestic pastoral areas, temporal oscillations in primary productivity occur earlier at the beginning of spring than in areas with only wild herbivory, which results in a month-to-month lag between wild in contrast to domestic grazing areas. Besides, the ecosystem primary productivity difference between spring and summer is higher in areas where livestock use has been maintained than in areas with only wild herbivory. To make optimal exploitation of existing resources, transhumant livestock moves to the mountainous zones in a period that matches the seasonal peaks of pasture productivity (Oteros-Rozas et al. 2012). Livestock consumes vegetation biomass at the time of maximum growth and before the dry season when drought events are common. This dynamic has resulted in highly adapted grasslands composed of plant species adapted to grazing that also benefit from the enrichment of available nutrients through the deposition of manure and urine (Bailey et al. 1996). Thus, the effect of seasonal precipitation and seasonal grazing is likely to be a major determinant factor of the intra-annual primary productivity variation in domestic herbivory areas, resulting in an adapted and sustainable transhumance-based grazing system.

In areas with only wild herbivory, where grazing intensity is much lower than it was 30 years ago, only the precipitation accumulated in the year has a positive effect on the primary productivity. The landscape has undergone a process of shrub encroachment, and the area covered by shrubs has now increased. The vegetation of areas with only wild herbivory has deeper root systems, allowing them to access deeper and less variable water supplies (Padilla and Pugnaire 2007). Besides, vegetation cover is denser than in grasslands and prevents soil moisture loss to a greater extent (Miranda et al. 2011). This makes primary productivity in areas with only wild herbivory less dependent on seasonal precipitation, although it still depends on annual precipitation.

Based on our results, we expect that changes in climate variability and the unpredictable occurrence of extreme weather events can interact with grazing to impact the sustainability of these transhumance-based grazing system. The stability and maintenance of the ecosystem processes of these landscapes depend on matching the seasonal movement of livestock with seasonal patterns. If precipitation becomes increasingly unpredictable and variable, this well-adapted grassland ecosystem would be destabilised because transhumant movements would not coincide with the ideal vegetation growing season. Moreover, if the effects of rising temperatures and precipitation anomalies are manifested through negative impacts on the water balance, this semi-arid grassland might be one of the most affected ecosystems by global climatic changes (Mowll et al. 2015). However, climate warming may have less effect on the persistence of trees or shrubs (Brown and Archer 1999; Dulamsuren et al. 2013) as they are less dependent on the water available on the upper layers of the soil profile.

Cultural landscapes and passive rewilding

In traditional grassland areas (transhumant), we observed a stable ecosystem functioning (i.e., greenness oscillation and tendency) over the 30-year studied period, indicating that it is a stable landscape and suggesting no sign of land degradation. Semi-arid mountain grasslands have a very long history of co-evolution between plant species and ungulates, as they have been used by native ungulates and for livestock feeding for many years. Vegetation in domestic pastoral areas is in constant renewal due to their use for livestock feeding and tends to show high productivity and nutrient content for ungulates (McNaughton 1979; Austrheim et al. 2014; Jarque-Bascuñana et al. 2022; Castillo-Garcia et al. 2022). Moreover, the main reason these ecosystems have been maintained over time is related to the ability of this traditional pastoral system to exploit apparently unproductive areas for livestock feed, playing a key role in food security (O’Mara 2012) and ecological sustainability. Grasslands maintained by human management where the grazing intensity has been adequate can result in very stable systems (Molinillo et al. 1997) and can be described as mature ecosystems (Rebollo and Gómez-Sal 2004). In Mediterranean environments with strong inter-annual variability, transhumant herbivores overlap productivity peaks and herbivore loads can be very high for short periods. The vegetation adapts to this scenario and the soil is enriched in structure, herbaceous perennials, and below-ground biomass (Gómez Sal 2017). Therefore, the studied transhumant system (i.e. CHP) presents livestock production using cultural and non-intensive practices (García-Ruiz et al. 2020), suggesting an environmentally sustainable management context.

In areas where only wild ungulates can access the vegetation, biomass has increased over time. In these areas, traditional land-use practices (transhumance) have been limited. This suggests that the landscape, after livestock exclusion, is undergoing secondary succession towards shrub encroachment because of the reduction in grazing pressure during the passive rewilding process (Nogués-Bravo et al. 2016; Pettorelli et al. 2019). We note that the increase in vegetation biomass can be detected in a relatively short period, which agrees with other studies on secondary succession (Molinillo et al. 1997; García-Ruiz et al. 2020; Baumann et al. 2020). Vegetation biomass shows no signs of temporal stabilisation in CJ, indicating that it is still in transition towards a different stage of the ecological succession. However, in Mediterranean mountains areas, landscape changes are slow (Pueyo and Beguería 2007; Bonet and Pausas 2012; Rey Benayas et al. 2015; Peña-Angulo et al. 2019) and these areas might remain as they are for decades.

The process of rewilding from land abandonment is a highly controversial issue in the scientific community. For instance, there are open questions on whether it is better to manage landscapes with low human activity, thus improving heterogeneity in landscape structure and configuration, or whether it is better to allow passive rewilding, enhancing landscape naturalization (García-Ruiz et al. 2020). According to some authors, the presence of human activity is related to increasing the complexity and biodiversity of these landscapes (Bauer et al. 2009; Lasanta et al. 2015). This human activity is the origin of most of the grassland ecosystem which provides multiple ecosystem services such as water supply and flow regulation, carbon storage, erosion control, climate mitigation, pollination, and cultural values (Li et al. 2018; Bengtsson et al. 2019; Jarque-Bascuñana et al. 2022). However, according to other authors, the natural recovery of scrublands and forests as a means of recovering the refuge of numerous plant and animal species is the best alternative for nature conservation (Navarro and Pereira 2015; Malhi et al. 2016; Pettorelli et al. 2018). Because different wild ungulates present browsing behaviour (i.e. red deer, Iberian ibex), land abandonment and the consequential replacement of grasslands with shrublands can potentially favour these wild ungulate species (Velamazán et al. 2023). Hence, although this natural succession implies a decrease in open grassland, the progressive establishment of shrublands can enhance the biodiversity of landscapes previously dominated by livestock farming (Speed et al. 2019).

The loss of some of these cultural landscapes seems inevitable as the abandonment of traditional uses is increasing, and thus passive rewilding. However, this process could be providing a unique opportunity to create more diverse landscapes. Warming has less effect on the persistence of trees or shrubs (Brown and Archer 1999; Dulamsuren et al. 2013) as they are less dependent on the water on the upper layers of the soil profile. Thus, by providing suitable landscape management, this process of shrub encroachment at intermediate levels could improve landscape heterogeneity and help buffer the effects of droughts and climatic oscillations.

Conclusion

The abandonment of traditional uses is increasing, and consequently, passive rewilding is expected to occur in different regions. Although domestic and wild ungulates may partially present similarities in their roles in trophic interactions through ingestion of excess plant tissue or by affecting nutrient cycling in grazed areas (Milchunas et al. 1989; Veblen et al. 2016; Barbosa et al. 2020), they also present important differences on their effects on vegetation. We, therefore, suggest focusing management efforts on maintaining both systems and evaluating transhumant landscapes as a form of sustainable ecological management that can also enhance food security. In addition, we should have special attention to areas where passive rewilding is taking place as areas for refuge and habitat for other types of wild species. With the increasing frequency of extreme weather events and rising temperatures, more studies should question how these different landscapes will be conserved in the long-term. In this context, our study helps to advance our understanding of vegetation dynamics in the context of different herbivory scenarios and under a framework of long-term climate patterns that ultimately may provide information for decision making in the management of Mediterranean landscapes.