Introduction

The current genetic diversity and structure of populations across their distribution range have been strongly influenced by climate changes over the course of the Quaternary ice age (Hewitt 2000). During interglacial periods, distribution ranges of cold-adapted species, such as boreal and alpine trees, shrank massively, sometimes causing vicariant distributions where small remnant populations became genetically isolated and severely bottlenecked (Hewitt 2000). These species expanded their refugium ranges during glacial periods reducing the genomic variability at the leading edge due to founder effects, although some genetic admixture between refugium populations increased diversity in newly colonized areas (Petit et al. 2003). Therefore, repeated cycles of range expansion and contraction result in a heterogeneous mosaic of genome diversity across extant populations that determine the evolutionary potential of relict tree species (Hampe and Petit 2005; Hampe and Jump 2011). Identifying those areas of reduced and increased diversity and evaluating the impact of historical demographic processes that underlie them are of utmost importance if we aim to guarantee their persistence in an increasingly warming world.

Beside climate changes, human-driven deforestation also impairs evolutionary processes that shape the genetic diversity of populations by extirpating trees (and their genes) while slowing down gene flow as fragmentation increases (Di Marco and Santini 2015; Frankham et al. 2017). Overall, deforestation exacerbates the genetic erosion of tree populations already depauperated by several cycles of range expansion and contraction (Dale 1997). However, we lack reliable, empirical estimates on the relative impact of climate driven quaternary range changes vs. human-driven deforestation in shaping the observed patterns of genetic variation in relict alpine trees highly threatened by climate warming. This knowledge gap can be addressed by applying chloroplast and nuclear genetic markers to depict spatial genetic patterns and to infer their historical demographic trends. Chloroplast markers (cpSSRs) are paternally inherited in most conifers, haploid, and show slow-paced mutation rate which, overall, make them little variable, while nuclear markers (nSSRs) are biparentally inherited, diploid, and show a fast-paced mutation rate, which make them highly variable (Avise 2004).

Here we evaluate the impact of climate change and anthropic activities in underlying the genetic diversity and structure of the Tertiary relict fir Abies pinsapo Boiss. (Pinaceae). Colonization and diversification patterns of firs in the Mediterranean are shaped by global climate change during the Miocene, while Quaternary climatic cycles would prompt secondary contact zones and posterior isolation of species (Balao et al. 2020). Further, human-driven deforestation threatens Mediterranean firs with a geographic scattered distribution, many of them endemic to few mountain ranges. Currently, this species occupies three mountain ranges at the southwestern region of the Iberian Peninsula: Sierra de Grazalema (ca. 400 ha), Sierra de las Nieves (ca. 1000 ha), and Sierra Bermeja (ca. 50 ha). Scattered stands and isolated trees, assumed to represent the remains of former larger populations, are rather common throughout the current A. pinsapo range. Modeling studies, supported by pollen fossil records, evidence that the distribution range of A. pinsapo has massively shrunk during the Holocene (Alba-Sánchez et al. 2010, 2019) due to a combination of climate warming and an intense anthropic activity that includes severe deforestation driven by a flourished naval industry during the sixteenth century, an indiscriminate logging during the nineteenth century onwards for timber, and uncontrolled livestock that hampered natural regeneration during the twentieth century (Becerra Parra 2006). Previous genetic studies on a few populations suggested evidence for bottlenecks and genetic drift, as well as low among-population genetic differentiation (Sánchez-Robles et al. 2014b; Cobo-Simón et al. 2020). Based on an exhaustive sampling across 44 populations that span the complete distribution range and by combining cpSSR and nSSR markers, we aim to: (1) quantify the spatial distribution of the genetic diversity. Based on known distribution range shifts and an intense deforestation documented in the area (Linares et al. 2010; Alba-Sánchez et al. 2019; Cobo-Simón et al. 2020), we expect low levels of genetic diversity and increased values of genetic structure particularly when dealing with small and geographically isolated populations, presumably subject to severe bottlenecks in the past; (2) test whether geographic features explain observed genetic patterns. To that end we apply landscape genetic models to test for isolation by distance (i.e., an increased genetic distance as the geographic distance increases caused by reduced levels of gene flow, Wright 1943). Extant populations are distributed across mountain ranges and, therefore, we expect that, in addition to geographic distance, orographic features and effective pollen dispersal distance would limit gene flow (Sánchez-Robles et al. 2014a). To support this hypothesis, we further identify genetic clusters that typically arise when populations become genetically isolated and we depict the location of geographic barriers to gene flow (Balkenhol et al. 2016); and (3) seek for, quantify and date past bottlenecks that might have contributed to shape current genetic patterns. On this account, we use cpSSRs and nSSRs to date demographic bottlenecks inferred by applying Approximate Bayesian Computation models (Cornuet et al. 2018). Bottlenecks caused by climate changes are expected to happen as the southern distribution range limit retreated after the last glaciation ca. 10 kya. Finally, we discuss the evolutionary consequences of past bottlenecks for relict and cold adapted trees in the light of increasing climate warming.

Materials and methods

Study site, sampling and genotyping

A. pinsapo is a critically endangered Mediterranean fir (IUCN red list), monoecious (subdioecious), wind-pollinated with a mixed mating system, i.e., trees produce a mixture of self-fertilized and outbred seeds (Arista and Talavera 1997; Sánchez-Robles et al. 2014a). The study area included the three mountain ranges present in southwest Spain that comprise the current total distribution area of A. pinsapo: Sierra (Sª hereafter) de Grazalema (36°43′–36°46′N; 5°23–5°28′W), in the province of Cádiz, and Sª de las Nieves (36°36′–36°45′N; 4°48′–5°01′W) and Sª Bermeja (36°29′–36°30′N; 5°12′–5°13′W), in the province of Málaga. We selected 44 populations, which were distributed proportionally to the extension of each mountain range: 27 populations from Sª de las Nieves, 13 from Sª de Grazalema and four from Sª Bermeja (Fig. 1). All populations were GPS georeferenced (Garmin Geko 201; Garmin International Inc., Olathe, KS, USA). Details of the different populations are shown in Table 1. From each population, needle tissue was collected from 10 adult individuals (total 440 individuals), and samples were subsequently stored in silica gel until DNA extraction.

Fig. 1
figure 1

Distribution map of the 44 populations sampled in the three mountain ranges of Abies pinsapo

Table 1 Features and genetic diversity parameters for the 44 Abies pinsapo populations sampled

Microsatellite genotyping: cpSSRs and nSSRs

We used 4 cpSSR primer pairs designed for Pinus thunbergii. The Pt63718 and the Pt71936 primers were originally designed by Wakasugi et al. (1994), whereas the Pt30141 and the Pt30249 primers were derived from the composed locus Pt30204 to avoid homoplasy (Liepelt et al. 2001). We also applied 11 nSSR primer pairs: NFF3, NFH15, NFH3, and NFF7 were designed for A. nordmanniana (Hansen et al., 2005), SF331 and SFb4 for A. alba (Cremer et al. 2006), and the remaining five primers (Pin8, Pin20, Pin29, Pin48, and Pin49) were designed for A. pinsapo (Sánchez-Robles et al. 2012). See Supplementary Material for more detailed methodology (Appendix A, Tables S1 and S2).

cpSSR and nSSR molecular analyses

The genotyping error rate for cpSSRs was estimated by genotyping a replicate taken at random from each population (44 samples in total; 10% of the total). Repetitions were carried out starting from the same DNA extraction. Allele combinations across the four cpSSR loci were treated as a haplotype, considering different haplotypes as a unique size variant combination of each cpSSR locus. The haplotype variation present in the different populations, as well as in the three mountain ranges as a whole, was explored by calculating the number of haplotypes (Nh) and the number of private haplotypes (Nhpriv) using the software Arlequin v3.5 (Excoffier et al. 2005) and SPAGeDi v1.4 (Hardy and Vekemans 2002).

Regarding the nuclear markers, several tests were carried out to detect the different types of errors present in the nSSR data: (i) Micro-Checker v2.2.3 (van Oosterhout et al. 2004) was used to estimate the rate of null alleles (alleles that are present but that cannot be genotyped); (ii) Pedant v1.0 (Johnson and Haydon 2007) was used to estimate the rate of dropout alleles (e1; homozygous individuals genotyped as heterozygous due to random failure to amplify an allele) as well as false alleles (e2; poorly genotyped alleles) using 10,000 iterations; and (iii) Fstat v2.9.3.2 (Goudet 2001) was used to test linkage disequilibrium between pairs of loci applying the Bonferroni correction for multiple comparisons. Additionally, the different mountain ranges, as well as the different populations within them, were genetically characterized by estimating the mean number of alleles and effective alleles (Ne) corrected for the sample size (Nielsen et al. 2003), the genetic diversity based on expected heterozygosity (He; Nei 1978), and the inbreeding index (FIS). Such diversity estimates were obtained with SPAGeDi and Fstat. ANOVAs were used to analyze mountain range differences, assessed as a fixed effect, for Ne, He, and FIS (the latter ones, previously arcsine-square root transformed as their values, after rescaling for FIS, are 0–1 limited,); Tukey’s HSD post-hoc tests (α = 0.05) were applied to test for pairwise differences. These analyses were performed with the JMP v6 software (SAS Institute Inc.).

Furthermore, Spearman correlation tests were applied for both markers to detect the possible relationship between altitude and genetic diversity (based on the expected heterozygosity: He). In a similar way, we proceeded to detect the relationship between He and the degree of isolation of a population (measured as the average distance to the other populations within the same mountain range), which was not correlated with the altitude (Spearman's ρ = 0.026, P = 0.865, n = 44). These analyses were also performed with the JMP v6 software (SAS Institute Inc.).

Genetic structure

To evaluate different hypotheses about the partition of the genetic variance, analyses of molecular variance were performed (AMOVAs; Arlequin v3.5). Groupings were carried out to represent the different mountain ranges and the different possible pairwise combinations between them. Additionally, based on the presence of peridotite, a grouping represented the different lithology outcrop areas. Variance components were tested for significance using an exact non-parametric test with 10,000 permutations.

For both markers, the global genetic structure was analyzed by Bayesian assignment analysis using the Structure v2.3.3 (Pritchard et al. 2000) software. Correlated allelic frequencies were considered (since due to migration or existence of common ancestors it was expected that there would be similar allele frequencies among populations) and 10 independent repetitions for each K were employed (K = 1–9). The number of iterations was 1 × 106, with a burn-in period of 150,000. To determine the optimal number of clusters (K), we checked the Structure results with the web-based Structure Harvester (Earl and vonHoldt 2012), which implements the Evanno et al. (2005) method using the ad-hoc statistics ΔK.

Furthermore, a phylogeographic test was carried out in order to study the genetic differentiation under different evolutionary models (Pons and Petit 1996). For this test, both markers were used independently (cpSSRs and nSSRs). The test compared observed randomly permuted NST (pNST = GST) values. GST estimates are based on allele frequencies and follow an infinite allele mutational model (IAM) for microsatellites, whereas NST takes into account the distance between different haplotypes, following a stepwise mutational model (SMM). Significantly higher NST than GST values indicate the presence of phylogeographic structure, i.e., different alleles are more related at a within- than at an among-population level (Lynch and Crease 1990; Pons and Petit 1996). The test was performed using SPAGeDi through 20,000 permutations. NST was computed using a matrix of genetic distances based on the sum of the squared differences (RST; Hardy et al. 2003). In order to detect the existence of phylogeographic signals at different scales, the test was applied independently for the three mountain ranges and for pairs of mountains (i.e., pairwise approach).

In order to explore the relationships between the different chlorotypes found, a haplotype network (Minimum Spanning Network) was constructed in ARLEQUIN using a matrix of FST distances based on the number of the different alleles found.

Isolation by distance and barriers to gene flow

The possible existence of isolation by distance (IBD) was analyzed by a Mantel test using the R package ecodist v2.0.7 (Goslee and Urban 2007). The Nei's genetic distance matrix (Nei 1972) was compared with the geographic distance matrix. The test was carried out using Spearman's nonparametric correlation with 10,000 permutations.

Likewise, genetic barriers (i.e., geographic areas with pronounced genetic discontinuity among populations) were explored with the Barrier v2.2 (Manni et al. 2004) software. The boundaries among the mountain ranges associated with the highest rates of genetic differentiation were detected based on a geographic distance matrix, and using the Delaunay triangulation and the Voronoi polygons. To evaluate barrier robustness, the population pairwise genetic distance matrix based on Jost’s D index (Jost 2008) was bootstrapped 1,000 times with the R package boot v1.2-43 (Canty and Ripley 2019) and, subsequently, run in Barrier.

Lastly, to explore and characterize the complex topology resulting from ancient and recent genetic interactions, we used a model based on Graph Theory (Dyer and Nason 2004). The genetic covariation between the different populations was analyzed for each marker by using the R package popgraph v1.2 (Dyer 2013). For each marker, the relationships between populations (nodes) were taken into account at a significance level of 0.050. Subsequently, we assessed the congruence among the connectivity patterns (Structural Congruence), as well as among the pairwise distances (Distance Congruence) of the graphs obtained for each marker (Dyer et al. 2010).

Demographic analysis

Finally, to trace the demographic history of A. pinsapo, the approximate Bayesian computation (ABC) analysis procedure (Beaumont et al. 2002) implemented in DIYABC v2.1 (Cornuet et al. 2014) was performed based on both cpSSR and nSSR datasets. The different cpSSR and nSSR loci were treated separately and the default values of the priors were used for all parameters. The summary statistics used were mean gene diversity, FST, and the classification index. An estimate of 20 years was used for the generation time in order to calculate the number of generations (Arista and Talavera 1994; Cobo-Simón et al. 2020). Four evolutionary scenarios were tested with DIYABC, based on the results obtained in the different analyses. Briefly, we tested a synchronic and asynchronic divergence of the three mountain ranges (scenarios 1 and 2) and we also tested the presence of bottlenecks just for Sª Bermeja (scenario 3) and for the three ranges (scenario 4). For more details, see Supplementary Material, Appendix B and Table S4.

Additionally, Migraine software (Leblois et al. 2014) was used to detect changes in population size (i.e., bottlenecks or expansion) for the three mountain ranges using maximum likelihood estimation (MLE). For each range and genetic marker (i.e., cpSSRs and nSSRs), we ran the software under the OnePopVarSize demographic model (a single population model with a single continuous past variation in population size) in order to estimate the bounds of the demographic parameters: current effective population size (2 current), scaled duration of population size change (Dg/2N), ancestral effective population size (2 ancestral), and the current population/ancestral population ratio (N-ratio). A generalized stepwise mutation model (GSM) was used for nSSR, whereas a strict stepwise mutation model was set for cpSSR. Preliminary parameter bounds were estimated with 4 iterations, 500 point estimates and 2000 runs per point. Final inferences were performed setting 8 iterations with 500 point estimates and 2000 runs per point. We evaluated significant changes in population size checking if 95% confidence intervals (CIs) excluded N-ratio = 1.0.

Results

Genetic diversity and spatial distribution of the Spanish fir

The overall total error rate for the cpSSR markers was 1.14%. For the nSSR ones, we found null alleles for most of the loci used when all populations were considered as a whole (Table S2); however, when populations were treated separately, null alleles were found for: NFF7 locus in pop. 39 (0.235), Pin48 locus in pop. 31 (0.192), NFF3 locus in pop. 15 (0.179), NFH15 locus in pop. 7 (0.203) and SFb4 locus in pop. 19 (0.218). No linkage was found between the different nSSR loci after Bonferroni correction for multiple comparisons (P-value adjusted to the significance level of 0.05 = 0.000909). The frequency (95% confidence intervals) of dropout (e1) and false (e2) alleles was 0.008 (0.001–0.067) and 0.005 (0.001–0.028), respectively.

We recorded 30 different cpSSR haplotypes and 86 nSSR alleles (Table S2). The number of effective alleles (Ne) showed no significant difference among mountain ranges for cpSSRs (F2,41 = 0.85, P = 0.433) but did show a significant one for nSSRs (F2,41 = 3.31, P = 0.047), between Sª Bermeja (Ne = 2.11) and Sª de las Nieves (Ne = 2.70). Genetic diversity showed no significant difference among mountain ranges both for cpSSRs (F2,41 = 1.65, P = 0.205) and nSSRs (F2,41 = 3.15, P = 0.053). Furthermore, we found significant differences for the inbreeding coefficient (FIS; F2,41 = 4.66, P = 0.015) between Sª Bermeja (FIS = − 0.16) and the other two mountain ranges (Sª de Grazalema: FIS = 0.01; Sª de las Nieves: FIS = − 0.01). For more details, see Table 2.

Table 2 Global and within mountain ranges genetic diversity obtained for cpSSRs and nSSRs

The global analysis of molecular variance (AMOVA; Table S3) showed that most of the genetic diversity was found within populations (cpSSRs: 80.4%; nSSRs: 90.1%). Mountain ranges played a significant role in structuring the genetic variance, although this effect was low (cpSSRs: 12.5%; nSSRs: 3.3%). However, the effect increased when we considered Sª Grazalema and Sª de las Nieves as a single unit separated from Sª Bermeja (cpSSRs: 18.2%; nSSRs: 3.8%). Individually, Sª Bermeja hosted the highest levels of genetic variance (cpSSRs: 24.6%; nSSRs: 14.7%), followed by Sª de las Nieves (cpSSRs: 12.5%; nSSRs: 8.4%) and Sª de Grazalema (cpSSRs: 12.1%; nSSRs: 6.4%). Lithology showed a low effect in structuring the genetic variance (cpSSRs: 3.1%; nSSRs: 0.7%).

Although the clustering analysis (Figs. S1 and S2) showed that sampled individuals could be grouped according to K = 4 (cpSSRs) and K = 2 (nSSRs) following the ΔK approach, these clusters did not fit any well-defined geographic pattern, i.e., clusters contained individuals sampled across all populations and mountain ranges. For nSSRs, the likelihood increased as K increased, whereas the mean likelihood reached a maximum in K = 4–5 for the cpSSR analysis.

The combination of alleles from the different cpSSR loci resulted in a total of 30 different haplotypes. Fig. S3 shows the relationship among the different haplotypes found, not appreciating defined patterns of relationship among them across the different mountain ranges.

The Monmonier’s maximum-difference, conducted on the two markers, showed a genetic border that separated Sª Bermeja from the other two mountain ranges, Sª Grazalema and Sª de las Nieves (Fig. 2a).

Fig. 2
figure 2

a Genetic discontinuity found by Monmonier’s maximum-difference algorithm for the three mountain ranges analyzed by the cpSSR and the nSSR markers. Bootstrap supports are indicated for each genetic barrier. b Covariance genetic network (Graph) for the cpSSR and the nSSR combined markers, showing significant genetic covariations (links) between the 44 populations (nodes). Colors indicate different significance levels: 0.050 (all, black, red and yellow links), 0.015 (only yellow and red links) and 0.010 (only red links). (Colour figure online)

The phylogeographic test resolved that the most probable mutation model that occurs for both markers, considering all populations together, was the infinite allele model (IAM). However, the significance for both markers varied considerably, being this model more appropriate for the cpSSR markers (NST = 0.143 vs. pNST = 0.147; P = 0.493) than for the nSSR ones (NST = 0.116 vs. pNST = 0.061; P = 0.051). When the test was conducted for pairs of mountain ranges, the presence of genetic structure for the cpSSR markers was only observed when Sª de las Nieves and Sª Bermeja were compared (NST = 0.197 vs. pNST = 0.092; P = 0.036), indicating that, for these markers, Sª Bermeja is more differentiated from Sª de las Nieves than from Sª de Grazalema.

Environmental factors that shape the distribution of the genetic diversity across the landscape

We observed a positive and significant correlation between geographic distance and genetic distance between populations, suggesting an overall isolation by distance pattern (cpSSRs: Spearman's ρ = 0.286; nSSRs: Spearman's ρ = 0.267; both P < 0.001). On the one hand, altitude and genetic diversity (He) were not correlated (cpSSRs: Spearman's ρ = 0.036, P = 0.815; nSSRs: Spearman's ρ = 0.096, P = 0.534). On the other hand, whereas cpSSRs revealed that the level of geographic isolation of a population and its genetic diversity (He) were negatively correlated (Spearman's ρ = − 0.429, P = 0.004), nSSRs did not show any relationship (Spearman's ρ = 0.103, P = 0.508).

The genetic covariance networks obtained at significance level of 0.050 for both markers showed congruence in their structure (Structural Congruence: CDF = 0.024) and distances (Distance Congruence: r = 0.076; P = 0.020). The combined network of both markers (Fig. 2b) showed a greater connectivity (number of connections between populations) between Sª Grazalema and Sª de las Nieves than between these mountain ranges and Sª Bermeja. Four population connections were observed between Sª Bermeja and Sª de las Nieves, which were weaker than the only connection found between Sª Bermeja and Sª Grazalema (which still remained at the P = 0.015 significance level). Only the connections between populations present within each mountain range, and between populations of Sª de las Nieves and Sª Grazalema, remained when the significance level increased to a higher value (P = 0.010), remaining Sª Bermeja isolated from the other two mountain ranges.

Historical demographic events: quantification and dating of demographic bottlenecks

ABC demographic inference analyses showed that the ‘synchronic divergence’ (scenario 1) and the ‘synchronic divergence with general bottleneck’ (scenario 4) were the most likely scenarios that would have underlain the observed genetic population divergence across mountain ranges (Fig. 3), with a posterior probability (95% confidence interval) of 0.4066 (0.3131–0.5001) and 0.9080 (0.9030–0.9130) for cpSSRs and nSSRs, respectively (Table S5). cpSSRs showed that the mean values of the posterior distribution of the population sizes were 9750, 4510, 2350, and 781 for Na1, N1, N2, and N3, respectively, which indicates that N1, N2, and N3 diverged 46.8 (13.1–147) generations ago (t2), corresponding to 936 (262–2940) yr BP. In addition, these markers showed a general bottleneck at 30.4 (10–104) generation ago (t1), which corresponds to 608 (200–2080) yr BP, where the mean value of the posterior distribution of the population size after the bottleneck were 461, 715, and 185 for Sª de las Nieves (N1bot), Sª de Grazalema (N2bot) and Sª Bermeja (N3bot), respectively (see Table S6). nSSRs showed that the mean values of the posterior distribution of the population sizes were 3520, 1170, 349, and 74.6 for the ancestral population (Na1), Sª de las Nieves (N1), Sª de Grazalema (N2), and Sª Bermeja (N3), respectively, which indicates that N1, N2, and N3 diverged 21.8 (1–102) generations ago (t2), corresponding to 436 (21.8–2040) yr BP (Table S6).

Fig. 3
figure 3

Results of the model comparison using approximate Bayesian computation analyses (ABC) for the cpSSR and the nSSR markers. Four evolutionary scenarios are represented and the most probable scenarios are indicated in orange (cpSSRs) and yellow (nSSRs). N1: Sª de las Nieves; N2: Sª de Grazalema; N3: Sª Bermeja; 0: recent time; t1: split and bottleneck time; t2: split time. (Colour figure online)

The results of the maximum likelihood estimation under the single population model with a single continuous past variation in population size were mostly congruent with ABC analyses. Significant population contractions between the ancestral and the current A. pinsapo populations were detected for the three mountain ranges for cpSSR genetic markers. Additionally, significant population bottlenecks were detected for Sª Bermeja and Sª de Grazalema for nSSR genetic markers, whereas N-ratio was not significantly different from 1.0 in Sª de las Nieves (see Table S7).

Discussion

Contrasted genetic diversity patterns among markers

The global pattern observed in our study supports a high population genetic diversity for plastidial and nuclear markers, which contrasted with the long-term isolation and the relict character of this species (Hampe and Petit 2005; Hampe and Jump 2011). Similar genetic diversity values have been previously shown in A. pinsapo (Terrab et al. 2007; Dering et al. 2014; Sánchez-Robles et al. 2014b; Cobo-Simón et al. 2020), as well as in other relict Mediterranean firs, such as those from north Africa (A. marocana, A. tazaotana, and A. numidica; Terrab et al. 2007; Sánchez-Robles et al. 2014b) and the eastern Mediterranean fir group (Awad et al. 2014; Hrivnák et al. 2017). These studies found relatively high within-population genetic diversity, as a presumable consequence of recurrent admixture events among isolated populations (Aleksić and Geburek 2014). This is contrary to what has been observed in conifers with wide distribution range, where high genetic diversity relies on their vast population sizes (Vendramin et al. 1999; Bouillé and Bousquet 2005).

On the one hand, genetic diversity for the plastidial markers was similar to that obtained by Sánchez-Robles et al. (2014b) and Cobo-Simón et al. (2020). The larger sampling in our study did not result in an increase in cpSSR genetic diversity, suggesting that populations show similar diversity values along the complete range. Regarding the nSSR markers, the genetic diversity obtained in our study revealed that, overall, the pinsapo fir exhibits a high genetic diversity (overall mean He = 0.523; overall mean Ne = 2.63), which was largely congruent with previous results (mean He = 0.596; mean Ne = 2.83), using the same markers (Cobo-Simón et al. 2020).

Remarkably, there was incongruence in terms of genetic diversity between cpSSRs and nSSRs, which showed different patterns for the different mountain ranges. This could be due to the fact that genetic diversity can be considered from two different methodological perspectives for haploid and diploid genomes: genetic identity and heterozygosity. Considering that plastidial markers are more sensitive to genetic drift than nuclear ones (Birky et al. 1983; Birky 1995), populations with a small effective size would be much more affected by stochastic effects than large populations. Therefore, the former ones could differentiate more easily by the fixation of different alleles (Wright 1982; Slatkin 1985). Moreover, being other factors equal (as mutation rates), this would increase the global genetic diversity when all populations are considered as a whole (Wahlund 1928). In this way, Sª Bermeja, with the smallest size in comparison to the rest of mountain ranges, could be the most affected one by drift processes. This is supported by the greatest genetic differentiation among its populations. Moreover, its FIS values, the lowest ones in comparison to those from Sª de Grazalema and Sª de las Nieves, might also be explained by drift, but by selection based on inbreeding depression as well (Table 2). By contrast, due to their larger sizes, Sª de Grazalema and Sª de las Nieves mountain ranges would be less affected; congruently, populations within these ranges were genetically more similar (lower FST values).

It is noteworthy that a potential relationship between genetic diversity and altitude, which might be based on lithology, slope, land-use history, or climate change refuges (Feurdean et al. 2013), was not found. In addition, a relationship of isolation by distance was detected for the plastidial markers, resulting in lower genetic diversity values (this effect was not detected for the nuclear ones).

Regarding the nSSRs, it is remarkable the high presence of null alleles found for most loci, as well as the presence of endogamous effects when all populations were considered as a whole or grouped into the mountain range they belonged to (with the exception of Sª Bermeja). However, these effects disappeared when populations were considered independently. This lack of congruence could be due to the Wahlund effect (Wahlund 1928), where an excess of observed homozygotes (greater expected than observed heterozygosity) results from merging of populational units rather than to the presence of null alleles or inbreeding effects themselves, indicating that the mountain ranges as a whole could be composed by small nuclei isolated from each other, which is consistent with the isolation effect found.

Low genetic structure but incipient differentiation

The results obtained by the AMOVA, the Bayesian analyses and the phylogeographic tests indicated a low genetic structure when all populations were considered globally, which is congruent with a previous study using AFLP markers (Sánchez-Robles et al. 2014b). However, there are some signs of genetic structure at a mountain range level. Overall, the cpSSR markers showed greater genetic differentiation (FST = 0.196) than the nSSR markers (FST = 0.099). Additionally, the restricted pollen dispersal of the genus Abies in general (Mazier et al. 2008) and A. pinsapo in particular (average pollen dispersal distance of 113–227 m; Sánchez-Robles et al. 2014a) would increase the drift effect due to the limited gene flow, also for cpSSRs.

The results obtained by the analyses of molecular variance (AMOVAs), population covariance graphs and the Monmonier algorithm were congruent with the highest differentiation found in Sª Bermeja, which had the smallest population size of the three mountain ranges and, therefore, where drift could act faster (Wright 1982; Nora et al. 2011). The FST value found for both markers were two times higher for Sª Bermeja than for Sª de las Nieves and Sª de Grazalema populations, suggesting that Sª Bermeja populations, despite their proximity (see Fig. 1), were more differentiated than those from Sª de las Nieves and Sª de Grazalema, both with a similar genetic differentiation value. Moreover, the phylogeographic tests for the cpSSR markers indicated that Sª Bermeja was genetically closer to Sª de Grazalema than to Sª de las Nieves. This relationship was also indicated by the genetic covariance graphs (Fig. 2b), where population connections between these two mountain ranges showed greater significance values. However, we found this phylogeographic signal between both mountain ranges only for one marker. This, together with the high number of connections, although less significant, present between Sª Bermeja and Sª de las Nieves populations in the genetic covariance graphs, suggest that this differentiation is very weak, and that it may indicate a practically contemporary separation of Sª Bermeja from the other two mountain ranges.

Recent divergence and demographic decline of the pinsapo fir

In this regard, the results obtained by the ABC analyses point to ‘synchronic divergence with general bottleneck’ scenario as the most probable scenario for the cpSSR markers. For nSSRs, the ‘synchronic divergence’ among the three mountain ranges was the most probable one. However, according to the posterior probability obtained (95% CI), there was no significant difference between both scenarios. However, population bottlenecks were also suggested by the Migraine analysis of nSSR and cpSSR but just for Sª de Grazalema and Sª Bermeja mountain ranges. Sª de las  Nieves would have maintained its effective population size in spite of the population decline. The ABC- and Migraine-based estimates for divergence times and effective population sizes should be considered a crude approximation since these algorithms do not take into account continuous migration or pollen-mediated gene flow, which counteracts differentiation, underestimating the assessed divergence and bottleneck time values (van Loo et al. 2015; Hrivnák et al. 2017).

Evidences of genetic isolation and genetic drift found for geographically isolated populations within each mountain range indicated a restricted gene flow. Furthermore, the fact that no significant effect of inbreeding was found when populations were considered individually, even for the most isolated and less diverse populations, supported that the current distribution of A. pinsapo could have originated from a relatively recent fragmentation (given the longevity of the species), probably due to unfavorable environmental conditions, recurrent fires and/or human activity (Becerra Parra 2006; Soto García 2006; Linares et al. 2009; Esteban et al. 2010), still maintaining levels of heterozygosity that are high enough to allow these symptoms to manifest.

A. pinsapo would have suffered expansion and contractions in its distribution range due to climatic oscillation along the Holocene (Alba-Sánchez et al. 2010). The Abies macro- and microfossil records found in localities in the south of the Iberian Peninsula, where it is not present today, leave evidence of the presence of the Spanish fir after the Holocene Thermal Maximum (c. 6000 yr BP), even in the last two millennia (Pantaléon-Cano et al. 2003; Olmedo-Cobo et al. 2017; Pardo-Martínez et al. 2021). Moreover, a palaeoecological study for the recent Holocene indicates an initial phase of great stability during the Islamic period, followed by significant degradation after Christian reconquest (ca. 1487–1530 cal AD). The Modern Era (1530–1800 cal AD) marked the beginning of forest management with cycles of conservation and deforestation related to the use of the Spanish fir for the construction of road network and iron foundry, among other uses (Guzmán Álvarez et al. 2013). After that, there was a progressive reduction in its representation until current date (Alba-Sánchez et al. 2018).

Finally, all western Mediterranean firs are narrow endemics and many populations have undergone considerable reductions in historical times due to an intensive management that has stretched well into the twentieth century. For A. pinsapo, many studies and recent historical photographs (Barbey 1931; Ceballos and Vicioso 1933; Gil Albarracín 2002; Garrido Domínguez 2006; Becerra Parra 2006; among others) suggest that the pinsapo fir landscapes have suffered depletion since the middle of the eighteenth century and, especially, during the nineteenth century, as a consequence of higher demand for coal, firewood and beams for construction. Additionally, the overgrazing derived from the numerous goat and sheep herds would have avoided further regeneration, added to the action of fires in reducing the area of the species. Nevertheless, the recent (last half of the twentieth century) expansion of several fragmented populations of A. pinsapo from scattered remaining stands, following the implementation of conservation measures (Guzmán Álvarez et al. 2013), could have diluted some populational differentiations and bottlenecks (e.g., Sª de Grazalema).

Implications for conservation

Our results showed that A. pinsapo populations have apparently been able to maintain relatively high levels of plastidial DNA diversity. Moreover, their genetic variation is little structured and the evolutionary “uniqueness” of single populations (in terms of endemic haplotypes; see Petit et al. 2003; Hampe and Petit 2005) is, therefore, relatively low.

The observed molecular patterns have several implications for the conservation and management of the species. The 44 A. pinsapo populations, taken as a whole, represent two delimited major evolutionarily units (ESUs): Sierra de Grazalema-Sierra de las Nieves vs. Sierra Bermeja (Moritz 1994). Most stands could serve as sources of plant material for restoration programs, although populations from Horno de la Miera, Sª del Pinar, and Sª de Zafalgar (from Sª de Grazalema), Los Sauces, Cubero, Caucón, Lajar, Froncaile, Yedra, Navas, Pilones, Cañada del Cuerno, Cañadas bajo, Cañada de Enmedio, and Cañada de las Ánimas (from Sª de las Nieves), and stands from the southern area of Sª Bermeja seem to be the most suitable ones in terms of haplotype richness (for more details, see Fig. S4). Genetic factors such as inbreeding depression may be of relatively little importance for population performance. Hence, conservation measures should mainly dealing to diminish the probability of stochastic events such as fires and the prevention of further habitat loss due to climate change and/or human impact. The endangered situation of this species under a climate change scenario might be enhanced, regarding conservation and adaptive management insights. Recent climate change has been related to increasing drought and A. pinsapo forest decline. Recurrent mortality events, mainly at low-elevation sites within the elevation range of A. pinsapo have been noted, whilst the high-elevation sites yielded a recent growth enhancement and increasing forest cover. Given the limited migration potential of this climate relict, adaptive management programs should consider assisted migration, upward in elevation or searching for potential sites by species distribution modelling for the conservation of this species. Furthermore, despite it is not plausible the existence contrasting lineages inhabiting every single population within the mountain ranges, the existence of gene frequency shifts associated with drought-induced mortality suggests some selective pressures that might enhance the differentiation (see for instance, Kuparinen et al. 2010; Cobo-Simón et al. 2021). Finally, collections of plant material for ex-situ activities or restoration programs could help by maximizing the number of populations rather than the number of individuals within populations.

Conclusions

This study contributes to a better understanding of the effects of historical climatic and recent anthropogenic changes on forest species inhabiting managed landscapes. Analyses suggest the existence of significant bottlenecks. This, together with genetic drift and isolation by distance, underlies the current genetic diversity distribution of the pinsapo fir across mountain ranges.