# RihlaAI - AI-Powered Travel Itinerary Generator
Your AI travel companion. One destination, infinite possibilities.
## Overview
RihlaAI is a web-based AI-powered travel itinerary generator that creates personalized, day-by-day travel plans using the OpenAI API. Simply input your destination and number of days, and get a complete travel itinerary with places to visit, local food recommendations, and practical travel tips.
## Features
- 🌍 **AI-Powered Planning**: Generates culturally accurate, authentic travel itineraries
- 🔍 **Smart Destination Search**: Two-level autocomplete (Country → Region/State/Wilaya)
- 📅 **Customizable Duration**: Plan trips from 1 to 14 days
- 🎨 **Beautiful UI**: Desert-meets-modern design with smooth animations
- 📱 **Fully Responsive**: Works seamlessly on desktop, tablet, and mobile
- 🖨️ **Print Ready**: Save your itinerary as PDF or print it
- 🎒 **Packing Lists**: Auto-generated packing recommendations
- ⚠️ **Travel Tips**: Practical advice for your destination
- 🔒 **Secure**: API keys stored server-side, input validation, rate limiting
- 🌐 **Offline-Ready Data**: 250+ countries and 5,000+ regions stored locally
## Tech Stack
| Layer | Technology |
|-------|-----------|
| Frontend | HTML5, CSS3, Vanilla JavaScript |
| Backend | PHP 8+ |
| AI Engine | OpenAI API (gpt-4o) |
| Server | Apache/Nginx (XAMPP for local development) |
## Prerequisites
- PHP 8.0 or higher
- Apache or Nginx web server (XAMPP recommended for local development)
- OpenAI API key (Get one here)
- Modern web browser (Chrome, Firefox, Safari, Edge)
## Installation & Setup
## Git Setup (First Time)
```bash
# inside the project folder
git init
git add .
git commit -m "Initial commit: RihlaAI app"
```
If you want to push to GitHub:
```bash
git branch -M main
git remote add origin
git push -u origin main
```
## Run With Docker
1. Create your environment file:
```bash
cp .env.example .env
```
2. Edit `.env` and set your real `OPENAI_API_KEY`.
3. Build and …