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);
});

Modified: Friday, December 04 2026, 6.59pm

Ibiza Town Council is urging people to plan their journey home before heading out and use taxis during the festive season, as police prepare additional alcohol and drug checks across the city.

A taxi, a police car, an ambulance and a hearse: Ibiza Town Council brought together four very different vehicles on Friday to launch its Christmas road safety campaign, ‘You Decide Who Takes You Home’. The message is clear: driving after drinking alcohol or taking drugs can have serious consequences.

The initiative encourages people to plan their journey home before going out and choose a taxi instead of their own vehicle for company dinners, nights out with friends and other festive gatherings.

Rubén Sousa, the council’s councillor for Integrated Mobility, said enjoying the Christmas celebrations should go hand in hand with making responsible transport choices.

“We have a public service like taxis available to us, which allows us to enjoy these celebrations without putting our lives or other people’s at risk,” he said.

Sousa stressed that getting home safely should be part of the planning for any night out, rather than an afterthought.

“We want taking a taxi not to be a last-minute decision,” he explained. “Such a simple decision can save lives.”

More police checks throughout the festive season

The campaign will be accompanied by increased alcohol and drug checks at locations across Ibiza Town throughout the Christmas period. José Luis del Blanco Delgado, head of Ibiza’s Local Police, announced that officers would also take part in a special campaign organised by Spain’s Directorate-General for Traffic (DGT).

The checks are intended to prevent dangerous behaviour and deter people from driving under the influence, helping to reduce the risk of road accidents.

“The main aim of these operations is not to issue fines, but to prevent accidents and save lives,” Del Blanco Delgado said.

He also reminded drivers that getting behind the wheel after consuming alcohol or drugs puts not only their own lives at risk, but also those of everyone else using the road.