@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;600;700&display=swap');

/* ========================================
   VOYLIA COLOR PALETTE
   ========================================

   Current colors:
   - Terracotta: #b5563a (PRIMARY - hero, footer, buttons)
   - Cream: #d6d59f (highlights)
   - Purple: #585ca5 (secondary accent)
   - Green: #345238 (accent)
   - Light Blue: #a4d0eb (tertiary accent)

   To change colors, update the hex values in the
   :root section below.
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-very-dark);
}

/* Custom Color Palette */
:root {
    /* Primary colors */
    --color-terracotta: #b5563a;
    --color-cream: #d6d59f;
    --color-purple: #585ca5;
    --color-green: #345238;
    --color-blue: #a4d0eb;

    /* Assigned colors */
    --primary-dark: var(--color-terracotta);
    --primary-medium: #c97259;
    --primary-light: #d68d77;

    /* Accents */
    --accent-burgundy: var(--color-terracotta);
    --accent-burgundy-light: #c97259;
    --accent-burgundy-dark: #9a4429;

    --accent-1: var(--color-green);
    --accent-2: var(--color-blue);
    --accent-warm: var(--color-cream);

    /* Neutrals */
    --light-bg: #f9f9f4;
    --text-dark: var(--color-green);
    --text-medium: var(--color-green);
    --text-very-dark: #1a1a1a;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-very-dark);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-terracotta);
}

.nav-links a.active {
    color: var(--color-terracotta);
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background: var(--accent-burgundy);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--accent-burgundy-light);
}

.btn-secondary {
    background: white;
    color: var(--accent-burgundy);
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--accent-burgundy);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--accent-burgundy);
    color: white;
}

/* Hero Section */
.hero {
    background: var(--primary-dark);
    color: white;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 2rem;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.btn-secondary-hero:hover {
    background: white;
    color: var(--primary-dark);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 550px;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-terracotta);
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-very-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-very-dark);
    margin-bottom: 3rem;
}

/* How It Works Section */
.how-it-works {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-terracotta);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    padding: 2.5rem;
    border-radius: 16px;
    background: rgba(164, 208, 235, 0.15);
    border-left: 5px solid var(--accent-burgundy);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-burgundy);
    transition: width 0.3s;
}

.step:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.step:hover::before {
    width: 100%;
    opacity: 0.05;
}

.step-number {
    display: inline-block;
    background: var(--accent-burgundy);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step h3 {
    margin-bottom: 0.75rem;
    color: var(--text-very-dark);
    font-size: 1.5rem;
}

.step p {
    color: var(--text-very-dark);
}

/* Plan Section */
.plan-section {
    max-width: 900px;
    margin: 5rem auto;
    padding: 2rem;
    background: var(--color-cream);
    border-radius: 16px;
}

.itinerary-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-very-dark);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-burgundy);
    box-shadow: 0 0 0 3px rgba(181, 86, 58, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Itinerary Preview */
.itinerary-preview {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.itinerary-preview.hidden {
    display: none;
}

.itinerary-preview h3 {
    margin-bottom: 1rem;
    color: var(--text-very-dark);
}

.itinerary-card {
    background: rgba(214, 213, 159, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.itinerary-card h4 {
    color: var(--accent-burgundy);
    margin-bottom: 0.5rem;
}

.itinerary-card p {
    color: var(--text-very-dark);
    margin-bottom: 0.25rem;
}

.day-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid var(--accent-burgundy);
}

.day-item h5 {
    color: var(--text-very-dark);
    margin-bottom: 0.5rem;
}

/* Connect Section */
.connect-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 2rem;
}

.companion-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.companion-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    padding: 1.5rem;
    background: rgba(164, 208, 235, 0.2);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-item h3 {
    color: var(--text-very-dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-item p {
    color: var(--text-very-dark);
    line-height: 1.6;
}

.companion-demo {
    position: sticky;
    top: 100px;
}

.companion-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.companion-card-header {
    margin-bottom: 1.5rem;
}

.companion-card-header h4 {
    color: var(--color-terracotta);
    font-size: 1.5rem;
}

.companion-results {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(181, 86, 58, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-burgundy);
}

.companion-results.hidden {
    display: none;
}

.results-message {
    color: var(--text-very-dark);
    margin: 0;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 2rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .companion-content {
        grid-template-columns: 1fr;
    }

    .companion-demo {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-secondary-hero {
        width: 100%;
    }

    .hero-image {
        height: 300px;
    }
}

/* Page Container Styles */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 300px);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--color-terracotta);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.3rem;
    color: var(--text-very-dark);
}

/* Placeholder Content */
.placeholder-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.placeholder-box {
    background: var(--color-cream);
    border: 3px dashed var(--color-terracotta);
    border-radius: 16px;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 600px;
}

.placeholder-box h2 {
    color: var(--color-terracotta);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.placeholder-box p {
    color: var(--text-very-dark);
    font-size: 1.1rem;
}

/* Link buttons in hero */
.btn-primary,
.btn-secondary-hero {
    text-decoration: none;
    display: inline-block;
}

/* Plan Page Layout */
.plan-container {
    padding: 1.5rem;
    max-width: 100%;
}

.plan-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    height: calc(100vh - 80px - 3rem);
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Chat Panel */
.chat-panel {
    border-right: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    background: white;
    height: 100%;
    overflow: hidden;
}

.chat-header {
    padding: 0.75rem 1.25rem;
    border-bottom: 3px solid #e5e7eb;
    background: white;
    flex-shrink: 0;
}

.chat-header h2 {
    margin: 0;
    color: var(--text-very-dark);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.chat-header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 400;
}

.chat-messages {
    flex: 1;
    overflow-y: scroll !important;
    overflow-x: hidden;
    padding: 1.5rem;
    background: #fafafa;
    height: 0;
}

.chat-messages::-webkit-scrollbar {
    width: 10px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 5px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.message {
    display: block;
    margin-bottom: 0.75rem;
    animation: messageSlideIn 0.2s ease-out;
    width: 100%;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-content {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    line-height: 1.5;
    font-size: 0.8125rem;
    word-wrap: break-word;
    font-family: 'Quicksand', 'Trebuchet MS', 'Lucida Grande', sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.user-message .message-content {
    background: var(--color-terracotta);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.assistant-message .message-content {
    background: white;
    color: var(--text-very-dark);
    margin-right: auto;
    border-bottom-left-radius: 6px;
    border: 3px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message-content p {
    margin: 0 0 0.5rem 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul,
.message-content ol {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.message-content li {
    margin: 0.25rem 0;
}

.message-content strong {
    font-weight: 600;
    color: var(--color-terracotta);
}

.message-content em {
    font-style: italic;
}

.message-content h1,
.message-content h2,
.message-content h3 {
    margin: 0.75rem 0 0.375rem 0;
    font-weight: 700;
    color: var(--text-very-dark);
}

.message-content h1 { font-size: 1rem; }
.message-content h2 { font-size: 0.9375rem; }
.message-content h3 { font-size: 0.875rem; }

.place-link {
    color: var(--color-terracotta);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    transition: all 0.2s;
}

.place-link:hover {
    color: #9a4429;
    text-decoration-style: solid;
    background: rgba(181, 86, 58, 0.1);
    padding: 0 2px;
    border-radius: 3px;
}

.chat-input-container {
    padding: 1rem 1.25rem;
    border-top: 2px solid #e5e7eb;
    display: flex;
    gap: 0.625rem;
    background: white;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 3px solid #d1d5db;
    border-radius: 18px;
    font-size: 0.875rem;
    font-family: 'Quicksand', 'Trebuchet MS', sans-serif;
    font-weight: 600;
    transition: all 0.2s;
    background: white;
}

.chat-input::placeholder {
    color: #9ca3af;
}

.chat-input:focus {
    outline: none;
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(181, 86, 58, 0.08);
}

.send-button {
    padding: 0.875rem 1.75rem;
    background: var(--color-terracotta);
    color: white;
    border: none;
    border-radius: 18px;
    font-family: 'Quicksand', 'Trebuchet MS', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.send-button:hover {
    background: #9a4429;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(181, 86, 58, 0.2);
}

.send-button:active {
    transform: translateY(0);
}

/* Map Panel */
.map-panel {
    position: relative;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    border-left: none;
}

.travel-map {
    width: 100%;
    height: 100%;
}

/* Responsive - keep chat on side even when resizing */
@media (max-width: 1024px) {
    .plan-layout {
        grid-template-columns: 350px 1fr;
    }
}

@media (max-width: 768px) {
    .plan-layout {
        grid-template-columns: 300px 1fr;
    }
}
