I'll help you create a comprehensive travel website with a custom itinerary builder. This will be a multi-page application with interactive features, real-time updates, and a modern design.
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TravelCraft - Build Your Perfect Journey</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background: #f8f9fa;
}
/* Header */
.header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 1rem 0;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 2rem;
}
.logo {
font-size: 1.8rem;
font-weight: bold;
display: flex;
align-items: center;
gap: 0.5rem;
}
.nav-menu {
display: flex;
list-style: none;
gap: 2rem;
align-items: center;
}
.nav-menu a {
color: white;
text-decoration: none;
transition: opacity 0.3s;
}
.nav-menu a:hover {
opacity: 0.8;
}
.user-actions {
display: flex;
gap: 1rem;
align-items: center;
}
.btn {
padding: 0.5rem 1rem;
border: none;
border-radius: 25px;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.5rem;
transition: all 0.3s;
font-weight: 500;
}
.btn-primary {
background: #ff6b6b;
color: white;
}
.btn-secondary {
background: transparent;
color: white;
border: 2px solid white;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
/* Main Content */
.main-content {
margin-top: 80px;
min-height: calc(100vh - 80px);
}
/* Hero Section */
.hero {
background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23667eea" width="1200" height="600"/><circle fill="%23764ba2" cx="200" cy="150" r="100" opacity="0.3"/><circle fill="%23ff6b6b" cx="800" cy="300" r="80" opacity="0.3"/><circle fill="%2351cf66" cx="1000" cy="100" r="60" opacity="0.3"/></svg>');
background-size: cover;
background-position: center;
color: white;
text-align: center;
padding: 6rem 2rem;
}
.hero h1 {
font-size: 3rem;
margin-bottom: 1rem;
font-weight: 700;
}
.hero p {
font-size: 1.2rem;
margin-bottom: 2rem;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
/* Search Section */
.search-section {
background: white;
padding: 2rem;
margin: -3rem 2rem 2rem;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
max-width: 1000px;
margin-left: auto;
margin-right: auto;
}
.search-form {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
align-items: end;
}
.form-group {
display: flex;
flex-direction: column;
}
.form-group label {
margin-bottom: 0.5rem;
font-weight: 500;
color: #555;
}
.form-group input, .form-group select {
padding: 0.75rem;
border: 2px solid #e1e5e9;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.3s;
}
.form-group input:focus, .form-group select:focus {
outline: none;
border-color: #667eea;
}
/* Itinerary Builder */
.itinerary-builder {
max-width: 1200px;
margin: 2rem auto;
padding: 0 2rem;
display: none;
}
.builder-header {
background: white;
padding: 2rem;
border-radius: 15px;
margin-bottom: 2rem;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.builder-controls {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}
.trip-info h2 {
color: #333;
margin-bottom: 0.5rem;
}
.trip-dates {
color: #666;
font-size: 1.1rem;
}
.total-cost {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
padding: 1rem 2rem;
border-radius: 10px;
text-align: center;
}
.total-cost h3 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}
/* Day Cards */
.days-container {
display: flex;
flex-direction: column;
gap: 2rem;
}
.day-card {
background: white;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
transition: transform 0.3s;
}
.day-card:hover {
transform: translateY(-5px);
}
.day-header {
background: linear-gradient(135deg, #51cf66, #40c057);
color: white;
padding: 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.day-title {
font-size: 1.3rem;
font-weight: 600;
}
.day-cost {
font-size: 1.1rem;
font-weight: 500;
}
.day-content {
padding: 2rem;
}
.activity-sections {
display: grid;
gap: 2rem;
}
.activity-section {
border: 2px dashed #e1e5e9;
border-radius: 10px;
padding: 1.5rem;
transition: all 0.3s;
}
.activity-section:hover {
border-color: #667eea;
background: #f8f9ff;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.section-title {
display: flex;
align-items: center;
gap: 0.5rem;
font-weight: 600;
color: #333;
}
.add-item-btn {
background: #667eea;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 20px;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.3s;
}
.add-item-btn:hover {
background: #5a67d8;
transform: scale(1.05);
}
.activity-item {
background: #f8f9fa;
border-radius: 8px;
padding: 1rem;
margin-bottom: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
transition: all 0.3s;
}
.activity-item:hover {
background: #e9ecef;
}
.item-info {
flex: 1;
}
.item-name {
font-weight: 600;
margin-bottom: 0.25rem;
}
.item-details {
color: #666;
font-size: 0.9rem;
}
.item-actions {
display: flex;
gap: 0.5rem;
}
.item-price {
font-weight: 600;
color: #51cf66;
margin-right: 1rem;
}
.action-btn {
background: none;
border: none;
cursor: pointer;
padding: 0.25rem;
border-radius: 4px;
transition: all 0.3s;
}
.action-btn:hover {
background: #dee2e6;
}
.edit-btn { color: #667eea; }
.delete-btn { color: #ff6b6b; }
/* Modal */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
z-index: 2000;
justify-content: center;
align-items: center;
}
.modal-content {
background: white;
border-radius: 15px;
padding: 2rem;
max-width: 600px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.modal-title {
font-size: 1.5rem;
font-weight: 600;
}
.close-btn {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #666;
}
.search-results {
display: grid;
gap: 1rem;
max-height: 400px;
overflow-y: auto;
}
.result-item {
border: 2px solid #e1e5e9;
border-radius: 10px;
padding: 1rem;
cursor: pointer;
transition: all 0.3s;
}
.result-item:hover {
border-color: #667eea;
background: #f8f9ff;
}
.result-item.selected {
border-color: #51cf66;
background: #f0fff4;
}
/* Features Section */
.features {
padding: 4rem 2rem;
background: white;
}
.features-container {
max-width: 1200px;
margin: 0 auto;
text-align: center;
}
.features h2 {
font-size: 2.5rem;
margin-bottom: 3rem;
color: #333;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.feature-card {
padding: 2rem;
border-radius: 15px;
background: #f8f9fa;
transition: transform 0.3s;
}
.feature-card:hover {
transform: translateY(-10px);
}
.feature-icon {
font-size: 3rem;
margin-bottom: 1rem;
color: #667eea;
}
.feature-card h3 {
font-size: 1.3rem;
margin-bottom: 1rem;
color: #333;
}
/* Responsive Design */
@media (max-width: 768px) {
.nav-menu {
display: none;
}
.hero h1 {
font-size: 2rem;
}
.search-form {
grid-template-columns: 1fr;
}
.builder-controls {
flex-direction: column;
align-items: stretch;
}
.total-cost {
order: -1;
}
}
/* Loading Animation */
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid #f3f3f3;
border-top: 3px solid #667eea;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Success/Error Messages */
.message {
padding: 1rem;
border-radius: 8px;
margin: 1rem 0;
display: none;
}
.message.success {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.message.error {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
</style>
</head>
<body>
<!-- Header -->
<header class="header">
<div class="nav-container">
<div class="logo">
<i class="fas fa-plane"></i>
TravelCraft
</div>
<nav>
<ul class="nav-menu">
<li><a href="#home">Home</a></li>
<li