DESPADAS HABANERO
Intelligent. Golden. Full of potential.

ABOUT HABANERO
Despadas Habanero is a very special horse who was bred and raised here on our farm, allowing us to know his character and development from the very beginning.
He is APTO as a breeding stallion and has already been used successfully for breeding during previous seasons. Now, a new chapter has started for him: Habanero has begun his ridden education and is currently being carefully backed, learning to accept the rider and discovering his work under saddle step by step.
What stands out most about him is his intelligence. He understands new exercises remarkably quickly, and once he has understood what is being asked of him, he performs it with increasing confidence and self-assurance. He is curious, attentive and naturally willing to learn, which makes his development especially enjoyable to follow.
Habanero also has an exceptionally rare and striking coat colour: Isabelo Castaño, a warm golden shade that gives him an almost metallic appearance in the light. Genetically, he carries two copies of the Pearl gene (PRL/PRL) on a bay base, creating this distinctive golden colour.
With his unusual genetics, breeding approval, experience as a stallion and promising start under saddle, Habanero offers an interesting combination for someone looking for a horse with individuality, intelligence and future potential.
He is a horse who has been given time to mature, and we are now enjoying watching him confidently take his first steps into his ridden career.
PEDIGREE
(function () {
const page = document.getElementById('edx-enrico-page');
if (!page) { return; }
/* ===================================================== GALLERY ===================================================== */
const galleryTrack = page.querySelector('.edx-gallery-track');
const galleryNext = page.querySelector('.edx-next');
const galleryPrev = page.querySelector('.edx-prev');
const galleryPhotos = Array.from( page.querySelectorAll('.edx-photo') );
if (galleryTrack && galleryNext && galleryPrev) {
galleryNext.addEventListener( 'click', function () {
galleryTrack.scrollBy({ left: galleryTrack.clientWidth, behavior: 'smooth' });
} );
galleryPrev.addEventListener( 'click', function () {
galleryTrack.scrollBy({ left: -galleryTrack.clientWidth, behavior: 'smooth' });
} );
}
/* Hide gallery if no ACF images */
const gallery = page.querySelector('.edx-gallery');
if ( gallery && galleryPhotos.length === 0 ) { gallery.style.display = 'none'; }
/* ===================================================== VIDEO ===================================================== */
const video = page.querySelector('.edx-video');
if ( video && !video.querySelector('iframe') ) { video.style.display = 'none'; }
/* If gallery or video missing, let remaining item fill row */
const media = page.querySelector('.edx-media');
if (media) {
const hasGallery = galleryPhotos.length > 0;
const hasVideo = video && video.querySelector('iframe');
if ( (hasGallery && !hasVideo) || (!hasGallery && hasVideo) ) { media.style.gridTemplateColumns = '1fr'; }
if ( !hasGallery && !hasVideo ) { media.style.display = 'none'; }
}
/* ===================================================== PHOTO LIGHTBOX ===================================================== */
const photoLightbox = page.querySelector('.edx-lightbox');
const photoLightboxImage = page.querySelector('.edx-lightbox-image');
const photoClose = page.querySelector('.edx-lightbox-close');
const photoNext = page.querySelector('.edx-lightbox-next');
const photoPrev = page.querySelector('.edx-lightbox-prev');
const photoCounter = page.querySelector('.edx-lightbox-counter');
let currentPhoto = 0;
function getPhotoUrl(index) {
const photo = galleryPhotos[index];
if (!photo) { return ''; }
return ( photo.getAttribute('data-full') || ( photo.querySelector('img') ? photo.querySelector('img').src : '' ) );
}
function showPhoto(index) {
if (!galleryPhotos.length) { return; }
if (index < 0) { index = galleryPhotos.length - 1; } if (index >= galleryPhotos.length) { index = 0; }
currentPhoto = index;
photoLightboxImage.src = getPhotoUrl(currentPhoto);
photoCounter.textContent = (currentPhoto + 1) + " / " + galleryPhotos.length;
}
function openPhoto(index) {
showPhoto(index);
photoLightbox.classList.add('open');
document.body.style.overflow = 'hidden';
}
function closePhoto() {
photoLightbox.classList.remove('open');
document.body.style.overflow = '';
}
galleryPhotos.forEach( function (photo, index) {
photo.addEventListener( 'click', function () {
openPhoto(index);
} );
} );
if (photoClose) {
photoClose.addEventListener( 'click', closePhoto );
}
if (photoNext) {
photoNext.addEventListener( 'click', function () {
showPhoto( currentPhoto + 1 );
} );
}
if (photoPrev) {
photoPrev.addEventListener( 'click', function () {
showPhoto( currentPhoto - 1 );
} );
}
if (photoLightbox) {
photoLightbox.addEventListener( 'click', function (event) {
if ( event.target === photoLightbox ) { closePhoto(); }
} );
}
/* ===================================================== PEDIGREE ===================================================== */
const pedigreeButton = page.querySelector('.edx-pedigree-button');
const pedigreeThumb = pedigreeButton ? pedigreeButton.querySelector('img') : null;
const pedigreeSection = page.querySelector('.edx-pedigree');
const pedigreeLightbox = page.querySelector('.edx-pedigree-lightbox');
const pedigreeLightboxImage = page.querySelector('.edx-pedigree-lightbox-image');
const pedigreeClose = page.querySelector('.edx-pedigree-close');
/* No pedigree selected in ACF = hide section */
if ( pedigreeSection && !pedigreeThumb ) {
pedigreeSection.style.display = 'none';
}
function openPedigree() {
if ( !pedigreeThumb || !pedigreeLightbox ) { return; }
pedigreeLightboxImage.src = pedigreeThumb.src;
pedigreeLightbox.classList.add( 'open' );
document.body.style.overflow = 'hidden';
}
function closePedigree() {
if (!pedigreeLightbox) { return; }
pedigreeLightbox.classList.remove( 'open' );
document.body.style.overflow = '';
}
if ( pedigreeButton && pedigreeThumb ) {
pedigreeButton.addEventListener( 'click', openPedigree );
}
if (pedigreeClose) {
pedigreeClose.addEventListener( 'click', closePedigree );
}
if (pedigreeLightbox) {
pedigreeLightbox.addEventListener( 'click', function (event) {
if ( event.target === pedigreeLightbox ) {
closePedigree();
}
} );
}
/* ===================================================== KEYBOARD ===================================================== */
document.addEventListener( 'keydown', function (event) {
if ( pedigreeLightbox && pedigreeLightbox.classList.contains( 'open' ) ) {
if (event.key === 'Escape') { closePedigree(); }
return; }
if ( photoLightbox && photoLightbox.classList.contains( 'open' ) ) {
if (event.key === 'Escape') { closePhoto(); }
if (event.key === 'ArrowRight') {
showPhoto( currentPhoto + 1 );
}
if (event.key === 'ArrowLeft') {
showPhoto( currentPhoto - 1 );
}
}
} );
})();
