Opens in a new tab
function updateHeaderHeight() {
        // Get the height of #brx-header
        const headerHeight = document.querySelector('#brx-header').offsetHeight;
          
        // Store the height in the CSS custom property --header-height
        document.documentElement.style.setProperty('--brxw-header-height', headerHeight + 'px');
    }

    // Execute the function as soon as the document is ready
    document.addEventListener('DOMContentLoaded', function() {
        updateHeaderHeight();  // Initial update of header height when the document is ready

        // Update the header height on window resize and orientation change
        window.addEventListener('resize', updateHeaderHeight);
        window.addEventListener('orientationchange', updateHeaderHeight);
});

Ibiza Town

Ibiza Town, the capital of the island, is a blend of historical allure and vibrant modernity. Dominated by the ancient fortress of Dalt Vila, a UNESCO World Heritage Site, the town offers a captivating journey through cobbled streets and medieval architecture. Beyond its historical charm, Ibiza Town is famed for its bustling nightlife, with a plethora of clubs and bars that attract global partygoers. The harbor area, brimming with yachts and lined with chic cafes and boutiques, adds a glamorous touch to this Mediterranean gem.