TANZANIA · BEST OF NORTHERN SAFARI

7-Day Best of

Tanzania Safari

Go deeper into Tanzania’s classic Northern Circuit on a private 7-day safari through Tarangire, Serengeti and Ngorongoro Crater. With extra time in the Serengeti, this itinerary offers a better-paced safari for big cats, elephants, sweeping plains and unforgettable Big Five moments.

From $1,947 per person sharing

Wildlife
Big Five & Great Wildlife Viewing
Best Time
Year-Round
Safari Style
Private Guided Game Drives
Group Size
Maximum 6 Guests Per Vehicle
Accommodation
Mid-Range to Luxury Options

PRIVATE & SMALL-GROUP TOURS

CAREFULLY SELECTED LODGES & CAMPS

FLYING DOCTORS EMERGENCY COVER INCLUDED

TATO CERTIFIED

PERSONAL SUPPORT THROUGHOUT YOUR JOURNEY

TANZANIA KENYA UGANDA RWANDA ZANZIBAR KILIMANJARO

EVERY SAFARI BEGINS WITH A CONVERSATION

462+ VERIFIED TRIP ADVISOR REVIEWS

TAILOR MADE EAST AFRICAN SAFARIS

TRUSTED SAFARI SPECIALIST SINCE 2010

Journey Overview
The Best of Tanzania
Safari Experience

Designed for travellers who want a deeper version of Tanzania’s classic Northern Circuit, this seven-day safari combines Tarangire, Serengeti and Ngorongoro Crater at a more comfortable pace. It follows the same iconic wildlife route as the shorter classic safari, but gives you extra time where it matters most — in the Serengeti.

This itinerary is ideal if you want more than a quick overview. Tarangire introduces you to elephants, baobabs and beautiful wilderness scenery, Serengeti gives you extended time for lions, leopards, cheetahs and sweeping plains, and Ngorongoro Crater completes the journey with one of Africa’s most rewarding Big Five game drives.

“Seven days gave us the time to enjoy Tanzania properly — more Serengeti game drives, incredible wildlife and a safari that never felt rushed.”

— SafariHQ Guest
Perfect For
First-Time Tanzania Visitors
Couples & Honeymooners
Wildlife Photographers
Families (6+ Years)
Nature & Wildlife Lovers
Bucket-List Adventures
At a Glance
Duration
7 Days / 6 Nights
Destinations
Tarangire · Serengeti · Ngorongoro
Park Fees
Included
Group Size
Max 6 per vehicle
Flying Doctors
Emergency Cover Included
Price From
$1,947 per person sharing
Pricing
Choose Your Experience

Every stay offers exceptional wildlife. Your accommodation simply defines the comfort, style and exclusivity of your safari.

Mid-Range
From $1,947
Per person, sharing

Comfortable lodges offering authentic safari experiences, warm hospitality and excellent value

Most Popular
Mid Luxury
From $2,529
Per person, sharing

Boutique lodges and camps combining exceptional comfort, prime locations and personalised service.

Luxury
From $3,323
Per person, sharing

Elegant luxury lodges offering exceptional service, spectacular locations and unforgettable safari stays.

All Prices Include
All accommodation (full board)
All game drives & park fees
Professional English-speaking guide
Airport & airstrip transfers
Flying Doctors emergency cover
Conservation area fees
24/7 SafariHQ concierge support
Pre-departure information pack
Excluding: international flights, visas, travel insurance, tips, personal expenses.
Day by Day
Your Journey

Arrive at Kilimanjaro International Airport, where your SafariHQ guide will welcome you to Tanzania and transfer you to Arusha. Settle into your accommodation, relax after your journey and enjoy your first evening beneath the slopes of Mount Meru before your safari adventure begins.

Activities

  • Meet & greet at Kilimanjaro Airport
  • Private transfer to Arusha
  • Safari briefing with your guide

Leave Arusha and journey through the landscapes of northern Tanzania to Tarangire National Park. Set out on a game drive among ancient baobabs and along the Tarangire River, searching for large elephant herds, lions, giraffes, zebras and an impressive variety of wildlife.

Activities

  • Scenic drive from Arusha
  • Tarangire game drive
  • Elephant & wildlife viewing

Leave Tarangire and journey north through Tanzania’s changing landscapes toward the legendary Serengeti. As the vast plains unfold, enter the national park and begin your first game drive, searching for lions, elephants, giraffes, zebras, wildebeest and other iconic wildlife.

Activities

  • Scenic drive from Tarangire
  • En-route Serengeti game drive
  • Wildlife viewing across the plains

Spend a full day exploring the wildlife-rich Central Serengeti, where open plains and river valleys attract an extraordinary variety of animals. Follow the day’s wildlife movements in search of lions, leopards, cheetahs, elephants, giraffes and vast herds of plains game.

Activities

  • Morning Serengeti game drive
  • Big cat & wildlife viewing
  • Afternoon game drive
  • Optional: Hot Air Balloon at sunrise (+extra)

Leave the Serengeti and journey toward the Ngorongoro Conservation Area before descending into the spectacular Ngorongoro Crater for a game drive. Explore the crater floor in search of lions, elephants, buffalo, hippos and the rare black rhino amid one of Africa’s richest wildlife areas.

Activities

  • Scenic drive from Serengeti
  • Ngorongoro Crater game drive
  • Big Five & black rhino viewing

After breakfast, leave the Ngorongoro highlands and enjoy a final scenic journey through northern Tanzania to Kilimanjaro International Airport. Reflect on unforgettable days of wildlife and wilderness before arriving at JRO for your onward flight.

Activities

  • Scenic drive from Ngorongoro
  • Private airport transfer
  • Drop-off at Kilimanjaro Int’l Airport

END OF SERVICE

Accommodation
Where You Will Sleep

For every destination, three accommodation levels — from authentic and comfortable to world-class. Your choice shapes the entire atmosphere of your safari.

Destination
Arusha
Arusha Farm House

Nestled beneath Mount Meru, this peaceful farmhouse retreat combines comfortable rooms, lush gardens and genuine Tanzanian hospitality—an ideal start or finish to your safari

Mount Meru Views
Swimming pool
Restaurant & bar
Lush Gardens
Ngare Sero Mountain Lodge

Located in Set on a historic coffee estate surrounded by forest and a tranquil lake, this charming colonial lodge offers personalised service, peaceful gardens and timeless elegance.

Colonial estate
Gourmet dining
Forest & lake
Central location
Gran Meliá Arusha

Overlooking Mount Meru, Gran Meliá Arusha blends contemporary luxury with world-class dining, elegant rooms and exceptional service before your Northern Tanzania safari.

Mount Meru views
Spa & wellness
Rooftop dining
Luxury suites
Destination
Tarangire / Karatu
Heart & Soul Lodge

Set near Lake Manyara National Park, Heart and Soul Lodge offers spacious cottages, peaceful gardens and genuine Tanzanian hospitality—an inviting retreat before or after your wildlife.

Garden setting
Swimming pool
Restaurant & bar
Spacious cottages
Ngorongoro Farm House

Nestled on a working coffee farm , Ngorongoro Farm House blends colonial charm with spacious cottages, lush gardens and warm Tanzanian hospitality after memorable safari days.

Coffee farm setting
Farm-to-table dining
Spacious cottages
Swimming pool
Tarangire Elephant Springs

Surrounded by ancient baobab trees, Tarangire Elephant Springs offers stylish suites, personalised service and an exclusive safari retreat in the heart of elephant country

Luxury suites
Baobab setting
Swimming pool
Elephant country
Destination
Serengeti
Tukaone Mwaloni Camp

Set in the heart of the Serengeti, Tukaone Hembe Camp offers authentic tented accommodation, personalised hospitality and exceptional wildlife viewing close to the park’s famous rich plains

Central Serengeti
Ensuite tents
Bush dining
Sundowner views
The Singing Grass Camp

Blending understated elegance with the spirit of the Serengeti, Singing Grass offers beautifully designed tents, personalised service and an intimate safari experience surrounded by nature.

Luxury tents
Campfire evenings
Bush dining
Wildlife setting
Kubu Kubu Tented Lodge

Perfectly positioned in Central Serengeti, Kubu Kubu Tented Lodge combines contemporary luxury, panoramic savannah views and exceptional comfort for an unforgettable safari experience.

Infinity pool
Fine dining
Luxury tents
Savannah views
Destination
Ngorongoro / Karatu
Heart & Soul Lodge

Set near Lake Manyara National Park, Heart and Soul Lodge offers spacious cottages, peaceful gardens and genuine Tanzanian hospitality—an inviting retreat before or after your wildlife.

Garden setting
Restaurant & bar
Swimming pool
Spacious cottages
Ngorongoro Farm House

Nestled on a working coffee farm , Ngorongoro Farm House blends colonial charm with spacious cottages, lush gardens and warm Tanzanian hospitality after memorable safari days.

Coffee farm setting
Farm-to-table
Spacious cottages
Swimming Pool
Meliá Ngorongoro Lodge

Perched on the Ngorongoro Crater rim, Meliá combines refined luxury, breathtaking caldera views and personalised service for an unforgettable safari stay

Crater rim views
Luxury spa
Infinity pool
Fine dining
Tanzania · 7-Day Best of Tanzania
Before You Travel
Everything you need to know before your journey begins.

We recommend applying for your Tanzania visa at least 4 weeks before departure to allow sufficient processing time. Your passport must be valid for at least six months from your arrival date and contain at least one blank visa page.

Visa requirements vary depending on your nationality. Your SafariHQ Travel Specialist will confirm the latest entry requirements and guide you through the application process before your journey.

SafariHQ Note

Once your safari is confirmed, we'll provide personalised visa guidance based on your passport and country of residence, making the process simple and stress-free.

A Yellow Fever Vaccination Certificate may be required if you are arriving from, or transiting for more than 12 hours through, a country where Yellow Fever is present. Malaria prevention is recommended for most travellers visiting Tanzania.

We also recommend bringing any personal medication, insect repellent and sunscreen. Please consult your doctor or travel clinic 4–6 weeks before departure for personalised medical advice.

SafariHQ Note

Every SafariHQ safari includes Flying Doctors emergency evacuation cover, providing emergency air evacuation from remote safari locations throughout East Africa.

Comprehensive travel insurance is essential and should cover medical expenses, emergency evacuation, trip cancellation, lost baggage and personal belongings for the entire duration of your journey.

While every SafariHQ safari includes Flying Doctors emergency evacuation cover, this does not replace comprehensive travel insurance.

SafariHQ Note

Before purchasing travel insurance, check with your credit card provider—your card may already include suitable travel cover.

Lightweight, neutral-coloured clothing such as khaki, olive, sand and brown is recommended. Avoid bright colors and  while on safari. Early mornings around Ngorongoro can be cool, while afternoons are generally warm, so packing layers is essential.

Recommended items: lightweight long-sleeve shirts, fleece or light jacket, safari hat, comfortable walking shoes, sunscreen (SPF 50+), insect repellent, sunglasses and a good camera. Soft-sided luggage is recommended for domestic safari flights.

SafariHQ Note

Even during the dry season, early morning game drives can be chilly. We recommend packing one warm layer for added comfort.

Dry Season: June – October

Wildlife Viewing: Excellent wildlife viewing as animals gather around rivers and waterholes. This is the best time to spot the Big Five, predators and large herds across the Serengeti and Ngorongoro Crater.

Conditions: Sunny days with cool mornings and evenings. Dry conditions, minimal rainfall and clear skies make this the most popular safari season.

Best For: First-time visitors, Big Five safaris, Great Migration river crossings (Jul–Sep), Photography, Family safaris.

Green Season: November – March

Wildlife Viewing: Outstanding birdwatching, lush landscapes and excellent wildlife viewing. January to March is also the calving season in Southern Serengeti, attracting predators and dramatic wildlife encounters.

Conditions: Warm temperatures with occasional short rains, vibrant scenery and fewer visitors throughout the parks.

Best For: Birdwatching, Calving season, Photography, Honeymoons, Better accommodation value

Shoulder Season: April – May

Wildlife Viewing: Wildlife remains excellent throughout Tanzania, although occasional rainfall may affect road conditions in some areas.

Conditions: The long rains bring green landscapes, quieter parks and excellent photographic opportunities with fewer visitors.

Best For: Lower prices, Peaceful safari experience, Green landscapes, Experienced travellers

SafariHQ Note

Tanzania offers exceptional wildlife viewing throughout the year, with each season providing a unique safari experience. Your SafariHQ Travel Specialist will recommend the ideal travel period based on your interests, budget and the wildlife experiences you wish to enjoy.

A 30% deposit is required to confirm your safari, with the remaining balance payable 45 days before arrival. SafariHQ accepts secure international bank transfers and online payment gateways.

Once your booking is confirmed, your dedicated safari specialist will guide you through every step of the payment and travel preparation process.

SafariHQ Note

A full itemised quote is provided within 24 hours of your enquiry. There is no commitment required at this stage.

Arrival Airport

Kilimanjaro International Airport (JRO)

Airport Meet & Greet

Included — your guide will meet you on arrival

Airport Transfer

Private vehicle included on arrival and departure

Currency

Tanzanian Shilling (TZS). US Dollars widely accepted.

Time Zone

GMT +3 (East Africa Time)

Languages

English and Swahili

Electricity

Type G (UK three-pin), 230V

SafariHQ Note

Guests arriving on long-haul overnight flights often appreciate spending their first night in Arusha before beginning their safari the following morning. We can arrange comfortable pre-safari accommodation on request.

Have a question not covered here?

Planning Your Safari
Frequently Asked Questions
Everything you need to know before booking. Can't find your answer? Ask our specialists directly.

Yes. A 7-day Best of Tanzania Safari is one of the strongest choices for first-time visitors because it covers Tanzania’s most iconic Northern Circuit highlights — Tarangire, Serengeti and Ngorongoro Crater — without feeling too rushed.

Compared to the 6-day classic safari, this itinerary gives you more time in the Serengeti, which is often the main reason travellers come to Tanzania. That extra day improves the pace, allows deeper wildlife viewing and gives better chances for lions, leopards, cheetahs and unforgettable plains scenery.

SafariHQ Tip

Choose this 7-day safari if you want the classic Tanzania route with more Serengeti time and a smoother overall pace.

Both itineraries visit Tarangire, Serengeti and Ngorongoro, but the experience is not the same. The 6-day safari is a compact version for travellers with limited time, while the 7-day Best of Tanzania Safari gives you a more relaxed and rewarding pace.

The main difference is the extra time in Serengeti National Park. Instead of passing through quickly, you have more opportunity to explore different wildlife areas, follow predator activity and enjoy game drives without feeling like every day is only about moving to the next destination.

SafariHQ Tip

If your dates allow it, the 7-day safari is the better choice because the extra Serengeti time adds real value to the journey.

The 7-day Best of Tanzania Safari price normally includes private 4x4 safari transport, a professional driver-guide, selected lodges or tented camps, meals as listed, drinking water during game drives, national park fees, Ngorongoro Conservation Area fees, crater service fees and Flying Doctors emergency cover.

It also includes game drives in Tarangire, Serengeti and Ngorongoro Crater. International flights, visas, travel insurance, tips, premium drinks and personal expenses are usually not included unless clearly shown in your final SafariHQ quotation.

SafariHQ Tip

When comparing Tanzania safari prices, always check if Serengeti and Ngorongoro fees are included, because they have a major impact on the final cost.

This 7-day Tanzania safari gives you excellent wildlife variety across three of the country’s best safari areas. In Tarangire, you may see large elephant herds, giraffes, zebras, buffalo, lions and ancient baobab trees, especially during the dry season.

Serengeti is the highlight for big cats, with good chances of seeing lions, leopards and cheetahs, along with wildebeest, zebras, hyenas, elephants and beautiful open plains. Ngorongoro Crater gives you a final Big Five experience, including lions, buffalo, elephants, hippos and, with luck, black rhino.

SafariHQ Tip

For the best overall wildlife experience, keep the extra Serengeti day — it gives your guide more time to track sightings and follow animal movement.

Absolutely. Every SafariHQ safari is designed around your travel style, interests and budget. Whether you'd like to add extra nights in the Serengeti, upgrade your accommodation, include a hot air balloon safari, or combine your journey with Zanzibar, Kenya, Uganda, Rwanda or Mount Kilimanjaro, we'll create a personalised itinerary just for you.

Our travel specialists work closely with you to ensure every detail matches your preferred pace, accommodation style and travel dates.

SafariHQ Tip

Your personalised itinerary and quotation are prepared at no additional cost, giving you complete flexibility before confirming your booking.

This safari is available in Mid-Range, Mid-Luxury and Luxury accommodation categories, allowing you to choose the style that best suits your travel preferences and budget. Every option includes carefully selected lodges and tented camps known for their comfort, hospitality and excellent locations close to Tanzania's leading safari destinations.

Whichever category you choose, you'll enjoy the same unforgettable wildlife experience, with the main difference being the level of comfort, facilities and exclusivity at each property.

SafariHQ Tip

Not sure which option is right for you? Your SafariHQ Travel Specialist will help you choose the accommodation category that best matches your expectations and budget.

Absolutely. This 6-day Tanzania safari can easily be combined with a relaxing beach holiday in Zanzibar, a Mount Kilimanjaro climb or a tailor-made safari through Kenya, Uganda or Rwanda. Many of our guests choose to extend their journey to experience more of East Africa in one seamless itinerary.

Your SafariHQ Travel Specialist will create a personalised itinerary, ensuring flights, accommodation and transfers connect smoothly throughout your journey.

SafariHQ Tip

Whether you're planning a honeymoon, family holiday or multi-country adventure, we'll tailor every detail to match your travel style, timeframe and budget.

For the widest choice of accommodation and travel dates, we recommend booking your Tanzania safari 6–12 months in advance, particularly if you plan to travel during the Great Migration season (June–October) or the festive period (20 December–10 January).

If you're travelling during quieter months, booking 3–6 months before departure is generally sufficient. Last-minute safaris may also be possible, subject to accommodation and vehicle availability.

SafariHQ Tip

Your personalised itinerary and quotation are usually prepared within 24 hours. Once you're ready to proceed, a 30% deposit secures your booking, with the remaining balance payable 45 days before arrival.

This 6-day Tanzania safari is operated as a private safari, giving you an exclusive 4×4 safari vehicle and a professional English-speaking guide throughout your journey. Travelling privately allows you to enjoy a flexible itinerary, spend more time at wildlife sightings and stop whenever you wish for photography or sightseeing.

If you're interested in meeting other travellers, SafariHQ also offers selected scheduled group safaris on specific departures. Your SafariHQ Travel Specialist will help you choose the option that best suits your travel style and budget.

SafariHQ Tip

Private safaris offer the greatest flexibility, while our scheduled group safaris provide an excellent value-for-money option for travellers who enjoy sharing the experience.

Still have questions? Our Safari Specialists are here to help.

Your Safari Specialists
Why Travel With SafariHQ
Every journey we create is built around you. Combining local expertise,
carefully selected partners and personalised planning, we help travellers
experience East Africa with confidence.
TripAdvisor Reviews
0 +
Google Reviews
0 +
Years in East Africa
0 +
Tailor-Made
0 %
01
Tailor-Made Around You

Every safari begins with a conversation. We listen first, then design your journey around your interests, travel style, accommodation preferences and pace. No fixed templates — only yours.

02
East Africa Is Our Home

From Tanzania and Kenya to Uganda and Rwanda, our specialists draw on first-hand local knowledge to recommend the right destinations, experiences and seasons for a safari designed around how you want to travel.

03
Carefully Selected Lodges

Every lodge and tented camp we recommend is chosen for its location, hospitality and guest experience — ensuring each stay complements your safari rather than simply accommodating it.

04
Travel With Confidence

Since 2010, SafariHQ has helped travellers explore East Africa with clear planning, honest advice and dedicated specialist support before, during and after every safari.

Guest Experiences

8-Day Mara River Crossing Safari
We were out and about for ten days with our guide James. I could not have imagined a better companion, and we saw many beautiful animals – including the Big Five. We watched the wildebeest river crossing. James knew everything about the animals and was always friendly. In addition, he answered every one of our questions.
Benjamin B
2026-08-28
7 Days Tarangire, Ngorongoro, Serengeti
The best safari company ever! We did 7 days across Tarangire, Lake Manyara, Ngorongoro and the Serengeti. The best trip of my life. The organisation from SafariHQ was amazing and the guides were incredible! Our guide Daniel was so kind, patient and super knowledgeable on all the animals and plants. We saw so many animals and Daniel was an excellent spotter. He is a super driver and we got amazing views of all the animals. I will definitely be doing another safari with SafariHQ. Thanks to Daniel and all of SafariHQ for the trip of a lifetime.
Nikki Gander
2026-07-23
3 Day Serengeti National Park
We had a very beautiful and unforgettable safari, during which we saw the Big 5 and many other great animals. Our guide James was very knowledgeable about everything regarding Tanzania and its wildlife. He was very nice and a great driver.
Felix S
2026-08-26
8 Days Tanzania Safari
Our guide Emmanuel was absolutely amazing. I felt he went above and beyond to make sure we saw every animal there was to see in Ngorongoro Carter and Lake Manyara National Park. Not only did we get to see the animals, we also so amazing flora, scenery and Emmanuel was full of knowledge about the area, people and animals. Overall our time in Tanzania was made exceptionally better because of the guides we had. Emmanuel was absolutely brilliant to make sure we had good viewing of all sights and animals. No task was to hard. He was friendly, polite, and I felt very safe in his company.
SafariHQ guide showing guests elephants during a game drive in Tanzania on a guided wildlife safari.
Richelle H
2026-07-09
3 night private Masai Mara NP
We were met by Simon from Safari HQ upon arrival in Nairobi and taken to our hotel which was s great way to start our Kenyan experience. Early the next morning, we were collected by Steve our Safari driver in our Safari vehicle for the long drive to the Zebra Valley Mara Lodge located adjacent to the Masai Mara National Game Reserve. Over the next 3 days, we enjoyed a series of fantastic early morning and late afternoon game Safari drives. Steve our driver was exceptional. Being an ex park ranger, his knowledge of the game reserve, the flora and fauna was fantastic. Given the condition of the roads, Steve was never in a rush and always allowed plenty of time to get us some great opportunities to view the amazing wildlife in the Mara reserve. We were extremely privileged that Steve manage to find great sighting / viewings of Elephants, Hippos, Giraffes, Ostriches, Lions, Cheetahs, numerous types of antelopes, Nile crocodiles, Wilderbeast, Zebras – the list goes on. Highlights included lunch under an Umbrella Acacia tree inside the game park. Given were on a 4 person private game Safari, Safari HQ and our Driver Steve were fantastic and the experience provided certainly exceeded our expectations.
7 Day Tanzania Safari
We spent three days in the Ngorongoro conservation area, three days in the Serengeti National Park and one day in the Lake Manyara National Park. We did our safari with Safari HQ. Our guide Emmanuel, was amazing. Not only was he a skilled Driver over the rugged and extremely challenging terrain, he knew exactly the right spots and angles to enable us to get the most spectacular photos. We saw the big five and much, much more many times over. I can only say it was a totally immersive and life changing experience. I would recommend Safari HQ and Emanuel in particular, to anyone wishing to undertake a Safari in Africa.
JC Melbourne
2026-07-09
Let's Talk
Start Planning
Your Safari

Tell us what you’re dreaming of and one of our East Africa safari specialists will respond within 24 hours with a personalised starting point for your journey — with no obligation.

+255 767 829 590
Speak with a SafariHQ specialist
+61 420 442 509
Also available on WhatsApp or Call
info@safarihq.com
Personalised replies within 24 hours
Safari Enquiry Form

No commitment required · Response within 24 hours 

Your Safari Awaits
Every Great Safari Begins
With a Conversation.

Every SafariHQ journey is built entirely around you — your interests, your pace and your preferred style of accommodation. There are no fixed departures, only carefully crafted experiences.

4.9★
Guest Rating
20+
Years in East Africa
100%
Tailor-Made
TATO
Member
ATTA
MEMBER
(function () { 'use strict'; const MAP_URL = 'https://safarihq.computersprings.com/wp-content/uploads/2026/09/safarihq-east-africa-map-final.svg'; const destinations = { tanzania: '#country-tanzania', kenya: '#country-kenya', uganda: '#country-uganda', rwanda: '#country-rwanda', zanzibar: '#marker-zanzibar', kilimanjaro: '#marker-kilimanjaro' }; /* * Find the map currently rendered * inside the JetMenu mega menu. */ function getMapContainer() { return document.getElementById('safarihq-map'); } /* * Highlight a destination. */ function activateDestination(name) { const container = getMapContainer(); if (!container) { return; } const svg = container.querySelector('svg'); if (!svg) { return; } /* Remove all previous active states */ svg.querySelectorAll('.is-active').forEach(function (element) { element.classList.remove('is-active'); }); const selector = destinations[name]; if (!selector) { return; } const target = svg.querySelector(selector); if (!target) { console.warn( 'SafariHQ destination not found:', selector ); return; } target.classList.add('is-active'); } /* * Detect which destination is being hovered. */ function getDestinationFromElement(element) { if (!element) { return null; } const names = [ 'tanzania', 'kenya', 'uganda', 'rwanda', 'zanzibar', 'kilimanjaro' ]; let current = element; while ( current && current !== document.body ) { if (current.classList) { for (const name of names) { if ( current.classList.contains( 'destination-' + name ) ) { return name; } } } current = current.parentElement; } return null; } /* * Global hover handler. * * This is deliberately attached to * document because JetMenu creates * its mega content dynamically. */ function setupHoverHandler() { if (window.safariHQMapHoverReady) { return; } window.safariHQMapHoverReady = true; document.addEventListener( 'mouseover', function (event) { const name = getDestinationFromElement( event.target ); if (!name) { return; } activateDestination(name); } ); } /* * Load the SVG into the Elementor * HTML widget. */ function loadMap() { const container = getMapContainer(); if (!container) { return; } /* * Don't load the SVG repeatedly. */ if ( container.dataset.safarihqLoaded === 'true' ) { activateDestination('tanzania'); return; } /* * Prevent multiple simultaneous requests. */ if ( container.dataset.safarihqLoading === 'true' ) { return; } container.dataset.safarihqLoading = 'true'; fetch(MAP_URL) .then(function (response) { if (!response.ok) { throw new Error( 'SafariHQ map could not be loaded.' ); } return response.text(); }) .then(function (svgText) { container.innerHTML = svgText; const svg = container.querySelector('svg'); if (!svg) { throw new Error( 'SafariHQ SVG element was not found.' ); } /* * Let our CSS control the dimensions. */ svg.removeAttribute('width'); svg.removeAttribute('height'); container.dataset.safarihqLoaded = 'true'; container.dataset.safarihqLoading = 'false'; /* * Tanzania is the default state. */ activateDestination('tanzania'); }) .catch(function (error) { container.dataset.safarihqLoading = 'false'; console.error( 'SafariHQ Destination Map:', error ); }); } /* * Main initialization. */ function initializeSafariHQMap() { setupHoverHandler(); loadMap(); } /* * Initial page load. */ if ( document.readyState === 'loading' ) { document.addEventListener( 'DOMContentLoaded', initializeSafariHQMap ); } else { initializeSafariHQMap(); } /* * Watch for JetMenu inserting the * mega-menu content dynamically. */ const observer = new MutationObserver(function () { if ( document.getElementById( 'safarihq-map' ) ) { loadMap(); } }); observer.observe( document.body, { childList: true, subtree: true } ); })();