GoExplore.ai — AI Travel Planner
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
–bg: #0a0f0d; –surface: #111a15; –border: rgba(29,158,117,0.18);
–text: #e8f5f0; –text-muted: #7ab89e;
–accent: #1D9E75; –accent-light: #9FE1CB;
}
html { scroll-behavior: smooth; }
body { font-family: ‘DM Sans’, sans-serif; background: var(–bg); color: var(–text); min-height: 100vh; overflow-x: hidden; }
body::before {
content: ”; position: fixed; inset: 0; z-index: 0;
background-image: linear-gradient(rgba(29,158,117,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(29,158,117,0.04) 1px, transparent 1px);
background-size: 48px 48px; pointer-events: none;
}
nav {
position: sticky; top: 0; z-index: 100; padding: 1rem 2rem;
display: flex; align-items: center; justify-content: space-between;
backdrop-filter: blur(12px); background: rgba(10,15,13,0.85); border-bottom: 1px solid var(–border);
}
.logo { font-family: ‘Syne’, sans-serif; font-weight: 800; font-size: 1.25rem; color: var(–text); text-decoration: none; }
.logo span { color: var(–accent); }
.nav-tag {
font-size: 11px; font-weight: 500; background: rgba(29,158,117,0.15); color: var(–accent-light);
border: 1px solid rgba(29,158,117,0.3); padding: 3px 10px; border-radius: 20px;
letter-spacing: .06em; text-transform: uppercase;
}
.hero { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 5rem 2rem 3rem; text-align: center; }
.hero-eyebrow {
display: inline-flex; align-items: center; gap: 8px;
font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(–accent); margin-bottom: 1.5rem; font-weight: 500;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ”; width: 32px; height: 1px; background: var(–accent); opacity: .4; }
h1 { font-family: ‘Syne’, sans-serif; font-size: clamp(2.4rem,6vw,4rem); font-weight: 800; line-height: 1.05; color: var(–text); margin-bottom: 1.25rem; }
h1 em { color: var(–accent); font-style: normal; }
.hero-sub { font-size: 1.1rem; line-height: 1.7; color: var(–text-muted); max-width: 520px; margin: 0 auto 3rem; }
.form-card {
position: relative; z-index: 1; max-width: 700px; margin: 0 auto 4rem; padding: 2.5rem;
background: var(–surface); border: 1px solid var(–border); border-radius: 20px;
box-shadow: 0 0 60px rgba(29,158,117,0.06);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media(max-width:560px){ .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(–text-muted); }
input, select {
background: rgba(255,255,255,0.04); border: 1px solid var(–border); border-radius: 10px;
padding: .75rem 1rem; font-family: ‘DM Sans’, sans-serif; font-size: 1rem; color: var(–text);
transition: border-color .2s, box-shadow .2s; width: 100%; outline: none; -webkit-appearance: none;
}
input::placeholder { color: rgba(122,184,158,0.35); }
input:focus, select:focus { border-color: var(–accent); box-shadow: 0 0 0 3px rgba(29,158,117,0.12); }
select option { background: #172010; color: var(–text); }
.vibe-label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(–text-muted); margin-bottom: 8px; }
.vibe-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.5rem; }
.vibe-btn {
font-family: ‘DM Sans’, sans-serif; font-size: 13px; padding: 6px 14px;
border-radius: 20px; border: 1px solid var(–border); background: transparent; color: var(–text-muted);
cursor: pointer; transition: all .2s;
}
.vibe-btn:hover, .vibe-btn.active { background: rgba(29,158,117,0.15); border-color: var(–accent); color: var(–accent-light); }
.generate-btn {
width: 100%; padding: 1rem; background: var(–accent); border: none; border-radius: 12px;
font-family: ‘Syne’, sans-serif; font-weight: 700; font-size: 1rem; color: #fff; cursor: pointer;
transition: background .2s, transform .15s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.generate-btn:hover { background: #17855f; transform: translateY(-1px); }
.generate-btn:active { transform: translateY(0); }
.generate-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
#loading { display: none; position: relative; z-index: 1; max-width: 700px; margin: 0 auto 3rem; text-align: center; padding: 3rem 2rem; }
.spinner { width: 48px; height: 48px; border: 3px solid rgba(29,158,117,0.2); border-top-color: var(–accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 1.5rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-family: ‘Syne’, sans-serif; font-size: 1.1rem; color: var(–text-muted); }
#output { display: none; position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 2rem 5rem; animation: fadeUp .5s ease forwards; }
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.trip-header { text-align: center; margin-bottom: 2rem; }
.trip-title { font-family: ‘Syne’, sans-serif; font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; margin-bottom: .5rem; color: var(–text); }
.trip-title span { color: var(–accent); }
.trip-meta { font-size: .95rem; color: var(–text-muted); display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.trip-meta-pill { background: rgba(29,158,117,0.1); border: 1px solid var(–border); padding: 4px 14px; border-radius: 20px; font-size: 13px; color: var(–accent-light); }
/* Export bar */
.export-bar { display: flex; gap: 10px; justify-content: center; margin: 1.5rem 0 2.5rem; flex-wrap: wrap; }
.export-btn {
display: inline-flex; align-items: center; gap: 7px; padding: .6rem 1.2rem;
border-radius: 10px; font-family: ‘DM Sans’, sans-serif; font-size: .88rem; font-weight: 500;
cursor: pointer; transition: all .2s; border: 1px solid var(–border);
background: var(–surface); color: var(–text-muted); text-decoration: none;
}
.export-btn:hover { border-color: var(–accent); color: var(–accent-light); background: rgba(29,158,117,0.08); }
.day-card { background: var(–surface); border: 1px solid var(–border); border-radius: 16px; margin-bottom: 1.25rem; overflow: hidden; }
.day-header {
display: flex; align-items: center; gap: 14px; padding: 1.25rem 1.5rem; cursor: pointer;
border-bottom: 1px solid transparent; transition: background .2s; user-select: none;
}
.day-header:hover { background: rgba(29,158,117,0.05); }
.day-header.open { border-bottom-color: var(–border); }
.day-badge { width: 40px; height: 40px; flex-shrink: 0; background: rgba(29,158,117,0.15); border: 1px solid rgba(29,158,117,0.3); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: ‘Syne’, sans-serif; font-weight: 700; font-size: 13px; color: var(–accent); }
.day-title-block { flex: 1; }
.day-name { font-family: ‘Syne’, sans-serif; font-weight: 700; font-size: 1rem; color: var(–text); }
.day-subtitle { font-size: .85rem; color: var(–text-muted); margin-top: 2px; }
.day-chevron { color: var(–text-muted); font-size: 18px; transition: transform .25s; }
.day-header.open .day-chevron { transform: rotate(180deg); }
.day-body { display: none; padding: 1.5rem; }
.day-body.open { display: block; }
.activity { display: flex; gap: 14px; padding: .9rem 0; border-bottom: 1px solid rgba(29,158,117,0.08); }
.activity:last-child { border-bottom: none; padding-bottom: 0; }
.act-time { flex-shrink: 0; width: 68px; font-size: 12px; font-weight: 500; color: var(–accent); padding-top: 2px; text-align: right; letter-spacing: .03em; }
.act-line { flex-shrink: 0; width: 1px; background: var(–border); position: relative; margin: 0 8px; }
.act-line::before { content: ”; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(–accent); box-shadow: 0 0 0 3px rgba(29,158,117,0.2); }
.act-name { font-weight: 500; font-size: .95rem; color: var(–text); margin-bottom: 3px; }
.act-desc { font-size: .85rem; line-height: 1.6; color: var(–text-muted); }
.act-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.act-tag { font-size: 11px; background: rgba(239,159,39,0.12); color: #FAC775; border: 1px solid rgba(239,159,39,0.2); padding: 2px 9px; border-radius: 10px; }
.tip-box { margin-top: 1.25rem; background: rgba(29,158,117,0.07); border: 1px solid rgba(29,158,117,0.2); border-radius: 10px; padding: .85rem 1.1rem; font-size: .88rem; color: var(–accent-light); line-height: 1.6; }
.tip-box strong { color: var(–accent); font-weight: 500; }
.reset-btn { display: block; margin: 2.5rem auto 0; padding: .75rem 2rem; background: transparent; border: 1px solid var(–border); border-radius: 10px; font-family: ‘Syne’, sans-serif; font-weight: 700; font-size: .9rem; color: var(–text-muted); cursor: pointer; transition: all .2s; }
.reset-btn:hover { border-color: var(–accent); color: var(–accent); }
.error-box { background: rgba(226,75,74,0.1); border: 1px solid rgba(226,75,74,0.3); border-radius: 10px; padding: 1rem 1.25rem; font-size: .9rem; color: #F09595; margin-top: 1rem; display: none; }
/* ======= PRINT STYLES ======= */
@media print {
* { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
body { background: #fff !important; color: #111 !important; }
body::before, nav, .export-bar, .reset-btn { display: none !important; }
#output { display: block !important; padding: 0 !important; animation: none !important; }
.trip-title { color: #111 !important; }
.trip-title span { color: #0F6E56 !important; }
.trip-meta-pill { background: #E1F5EE !important; color: #0F6E56 !important; border-color: #9FE1CB !important; }
.day-card { background: #fff !important; border: 1px solid #ccc !important; break-inside: avoid; margin-bottom: .75rem !important; }
.day-header { background: #f5faf7 !important; border-bottom-color: #ccc !important; pointer-events: none; }
.day-header.open { border-bottom-color: #ccc !important; }
.day-badge { background: #E1F5EE !important; color: #0F6E56 !important; border-color: #9FE1CB !important; }
.day-name { color: #111 !important; }
.day-subtitle, [style*=”color:var(–text-muted)”] { color: #555 !important; }
.day-chevron { display: none !important; }
.day-body { display: block !important; }
.act-time { color: #0F6E56 !important; }
.act-line { background: #ddd !important; }
.act-line::before { background: #0F6E56 !important; box-shadow: none !important; }
.act-name { color: #111 !important; }
.act-desc { color: #444 !important; }
.act-tag { background: #FFF8EC !important; color: #854F0B !important; border-color: #FAC775 !important; }
.tip-box { background: #f0faf5 !important; border-color: #9FE1CB !important; color: #0F6E56 !important; }
.tip-box strong { color: #0F6E56 !important; }
@page { margin: 1.5cm 1.8cm; }
}
Your perfect trip,
planned in seconds.
Tell us where you’re going and how long you have. Our AI builds a personalized day-by-day itinerary with the best things to see, eat, and do.
2 days
3 days
4 days
5 days
6 days
7 days
10 days
14 days
// ─── CONFIGURATION ─────────────────────────────────────────
// This points to your PHP proxy file on your WordPress server.
// Make sure goexplore-proxy.php is uploaded to your WordPress root folder.
const PROXY_URL = ‘/goexplore-proxy.php’;
// ───────────────────────────────────────────────────────────
const loadingMessages = [
“Researching hidden gems…”,
“Mapping out your days…”,
“Finding the best local spots…”,
“Crafting your perfect itinerary…”,
“Almost ready to explore…”
];
let loadingInterval;
let selectedVibes = new Set([‘Cultural’]);
let currentItinerary = null;
let currentMeta = {};
document.querySelectorAll(‘.vibe-btn’).forEach(btn => {
btn.addEventListener(‘click’, () => {
const v = btn.dataset.vibe;
if (selectedVibes.has(v)) {
if (selectedVibes.size > 1) { selectedVibes.delete(v); btn.classList.remove(‘active’); }
} else { selectedVibes.add(v); btn.classList.add(‘active’); }
});
});
async function generateItinerary() {
const destination = document.getElementById(‘destination’).value.trim();
const days = document.getElementById(‘days’).value;
if (!destination) { showError(‘Please enter a destination to explore!’); return; }
hideError();
const vibes = […selectedVibes].join(‘, ‘);
currentMeta = { destination, days, vibes };
document.getElementById(‘form-card’).style.display = ‘none’;
document.getElementById(‘output’).style.display = ‘none’;
const loading = document.getElementById(‘loading’);
loading.style.display = ‘block’;
let msgIndex = 0;
const loadingText = document.getElementById(‘loading-text’);
loadingInterval = setInterval(() => {
msgIndex = (msgIndex + 1) % loadingMessages.length;
loadingText.textContent = loadingMessages[msgIndex];
}, 1800);
const prompt = `You are a world-class travel planner for GoExplore.ai. Create a detailed ${days}-day itinerary for ${destination} tailored to someone who loves: ${vibes}.
Return ONLY valid JSON (no markdown, no code fences, no extra text) in this exact structure:
{
“destination”: “Full destination name”,
“tagline”: “A short inspiring 6-8 word tagline for this trip”,
“overview”: “2-sentence trip overview”,
“days”: [
{
“day”: 1,
“theme”: “Theme name (3-5 words)”,
“subtitle”: “One evocative sentence about this day”,
“activities”: [
{
“time”: “9:00 AM”,
“name”: “Activity/place name”,
“description”: “2-3 sentence description with specific details, tips, what to expect”,
“tags”: [“tag1”, “tag2”]
}
],
“tip”: “One local insider tip for this day”
}
]
}
Each day must have 4-6 activities. Tags should be short (1-2 words) like: Must-See, Local Favorite, Hidden Gem, Best at Sunset, Book Ahead, Free Entry, etc. Make it genuinely useful and specific to ${destination}.`;
try {
const response = await fetch(PROXY_URL, {
method: ‘POST’,
headers: { ‘Content-Type’: ‘application/json’ },
body: JSON.stringify({ messages: [{ role: ‘user’, content: prompt }] })
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const data = await response.json();
const text = data.content.map(b => b.text || ”).join(”);
const clean = text.replace(/“`json|“`/g, ”).trim();
currentItinerary = JSON.parse(clean);
clearInterval(loadingInterval);
loading.style.display = ‘none’;
renderItinerary(currentItinerary, days, vibes);
} catch(err) {
clearInterval(loadingInterval);
loading.style.display = ‘none’;
document.getElementById(‘form-card’).style.display = ‘block’;
showError(‘Something went wrong generating your itinerary. Please try again!’);
console.error(err);
}
}
function renderItinerary(data, days, vibes) {
const out = document.getElementById(‘output’);
out.style.display = ‘block’;
const daysHtml = data.days.map((day, i) => {
const activitiesHtml = day.activities.map(act => {
const tagsHtml = (act.tags||[]).map(t => `${t}`).join(”);
return `
${tagsHtml ? `
` : ”}
`;
}).join(”);
return `
${day.tip ? `
` : ”}
`;
}).join(”);
out.innerHTML = `
${data.overview}
`;
out.scrollIntoView({ behavior: ‘smooth’, block: ‘start’ });
}
function toggleDay(header) {
header.classList.toggle(‘open’);
header.nextElementSibling.classList.toggle(‘open’);
}
function openAllDays() {
document.querySelectorAll(‘.day-header’).forEach(h => {
h.classList.add(‘open’);
h.nextElementSibling.classList.add(‘open’);
});
}
function printItinerary() {
openAllDays();
setTimeout(() => window.print(), 150);
}
function exportPDF() {
if (typeof html2pdf !== ‘undefined’) { _doPDF(); return; }
const s = document.createElement(‘script’);
s.src = ‘https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js’;
s.onload = _doPDF;
document.head.appendChild(s);
}
function _doPDF() {
openAllDays();
const el = document.getElementById(‘output’);
const dest = (currentItinerary?.destination || ‘itinerary’).replace(/[^a-z0-9]/gi,’_’).toLowerCase();
setTimeout(() => {
html2pdf().set({
margin: [12,14,12,14],
filename: `goexplore_${dest}.pdf`,
image: { type: ‘jpeg’, quality: 0.95 },
html2canvas: { scale: 2, useCORS: true, backgroundColor: ‘#0a0f0d’ },
jsPDF: { unit: ‘mm’, format: ‘a4’, orientation: ‘portrait’ },
pagebreak: { mode: [‘avoid-all’,’css’] }
}).from(el).save();
}, 200);
}
function exportText() {
if (!currentItinerary) return;
const d = currentItinerary;
let txt = `GOEXPLORE.AI — TRAVEL ITINERARY\n${‘=’.repeat(50)}\n`;
txt += `Destination: ${d.destination}\n”${d.tagline}”\n\n${d.overview}\n\n`;
txt += `Duration: ${currentMeta.days} days | Style: ${currentMeta.vibes}\n${‘=’.repeat(50)}\n\n`;
d.days.forEach(day => {
txt += `DAY ${day.day}: ${day.theme.toUpperCase()}\n${day.subtitle}\n${‘-‘.repeat(40)}\n`;
day.activities.forEach(act => {
txt += `${act.time.padEnd(10)} ${act.name}\n ${act.description}\n`;
if (act.tags?.length) txt += ` [${act.tags.join(‘, ‘)}]\n`;
txt += ‘\n’;
});
if (day.tip) txt += `Local tip: ${day.tip}\n`;
txt += ‘\n’;
});
txt += `\nGenerated by GoExplore.ai — goexplore.ai\n`;
const blob = new Blob([txt], { type: ‘text/plain’ });
const url = URL.createObjectURL(blob);
const a = document.createElement(‘a’);
a.href = url;
a.download = `goexplore_${(d.destination||’itinerary’).replace(/[^a-z0-9]/gi,’_’).toLowerCase()}.txt`;
a.click();
URL.revokeObjectURL(url);
}
function resetForm() {
document.getElementById(‘output’).style.display = ‘none’;
document.getElementById(‘form-card’).style.display = ‘block’;
window.scrollTo({ top: 0, behavior: ‘smooth’ });
}
function showError(msg) { const b = document.getElementById(‘error-box’); b.textContent = msg; b.style.display = ‘block’; }
function hideError() { document.getElementById(‘error-box’).style.display = ‘none’; }