/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Baskerville', 'Georgia', serif; /* Cinematic/Editorial feel */
    background: #0a0a0a;
    color: #f5f5f5;
    overflow: hidden; /* Disable scrollbars */
    width: 100%;
    height: 100%;
}

html {
    height: 100%;
    overflow: hidden;
}

@supports (-webkit-touch-callout: none) {
  html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
}

/* Slider Viewport Wrapper */
.slider-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Slider Container */
.slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); /* Premium smooth transition */
    will-change: transform;
}

/* Slide Styles */
.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Background Media */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background img,
.background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay Styles */
.overlay {
    position: absolute;
    bottom: 12%;
    left: 8%;
    z-index: 2;
    max-width: 640px;
    /* Removed background and animations for a 'quieter' feel */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Subtle legibility boost without heavy containers */
}

.overlay h1 {
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 0.02em; /* Reduced letter-spacing */
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.95);
    /* Avoided forced uppercase */
}

.overlay p {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Navigation UI */
.slider-nav {
    position: fixed;
    bottom: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(50%);
    z-index: 10;
    pointer-events: none;
}

.slider-nav button {
    background: rgba(255, 255, 255, 0.30); /* Extremely subtle circular presence */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0.90; /* Base visibility of both arrow and circle */
    transition: opacity 0.5s ease, background 0.5s ease;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
}

.slider-nav button:hover {
    opacity: 0.4; /* Slightly more visible on interaction */
    background: rgba(255, 255, 255, 0.08);
}

.slider-nav svg {
    width: 32px; /* Reduced size */
    height: 32px;
    fill: #fff;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .overlay h1 {
        font-size: 2rem;
    }
    .overlay p {
        font-size: 0.9rem;
    }
    .slider-nav {
        padding: 0 15px;
    }
    .chat-prompt-container {
        width: 90%;
        padding: 0 20px;
    }
}

/* Chat Prompt Styles (First Slide Only) */
.chat-prompt-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 720px;
    z-index: 5; /* Above background (1), below navigation (10) */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align to the left of the container */
    padding: 0 40px;
}

.chat-agent {
    display: flex;
    align-items: flex-start; /* Changed from center to align with top of bubble/name */
    margin-bottom: 12px;
    margin-left: 10px; /* Slight offset to align with textarea content */
}

.agent-avatar {
    width: 44px; /* Increased from 32px for clearer presence */
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 14px;
    border: 1px solid rgba(74, 107, 138, 0.6); /* Muted Greek blue halo */
    flex-shrink: 0;
}

.agent-info {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.95);
    color: #333333;
    padding: 12px 18px;
    border-radius: 6px 16px 16px 16px;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 450px;
    font-weight: 300;
    margin-top: 2px;
}

.chat-input {
    width: 100%;
    min-height: 120px; /* Comfortable height for multi-line questions */
    background: rgba(255, 255, 255, 0.95); /* Solid white/translucent background */
    border: none;
    border-radius: 14px; /* Soft, modern rounded corners */
    padding: 22px 28px 60px 28px; /* Extra bottom padding for button */
    color: #333333; /* Soft dark gray for readability */
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    resize: none; /* No resize handle */
    transition: background 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Extremely subtle shadow-less edge feel */
}

.chat-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-weight: 300;
}

.chat-input:focus {
    background: #ffffff;
}

.chat-submit {
    position: absolute;
    right: 55px;
    bottom: 22px;
    background: #1a1a1a; /* Dark neutral charcoal */
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.3s ease;
    transform: translateY(0);
}

.chat-submit:hover {
    background: #333333;
}

/* Slide 2: Planning Phase Styles */
.planning-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    gap: 80px;
    z-index: 5;
    align-items: stretch;
    padding: 40px 0;
}

.planning-column {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0; /* Allow children to shrink and scroll */
}

.conversation-col {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.conversation-col::-webkit-scrollbar {
    display: none;
}

.itinerary-col {
    flex: 0 0 55%;
}

/* AI Conversation Styling */
.demo-chat-conversation {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.chat-message {
    display: flex;
    align-items: flex-start;
}

.chat-message.visitor {
    justify-content: flex-end;
}

.agent-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid rgba(74, 107, 138, 0.4);
    flex-shrink: 0;
}

.message-content {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.message-author {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.message-bubble-static {
    background: rgba(255, 255, 255, 0.05);
    padding: 18px 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.chat-message.ai .message-bubble-static {
    background: rgba(255, 255, 255, 0.08);
}

/* Alternative Options in Chat */
.alt-intro {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.alt-option-card {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
}

.alt-option-card:last-child {
    margin-bottom: 0;
}

.alt-option-img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.alt-option-info {
    display: flex;
    flex-direction: column;
}

.alt-option-name {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 2px;
}

.alt-stars {
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.alt-option-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    margin-bottom: 8px;
}

.alt-add-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-align: left;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    font-weight: 300;
    transition: color 0.3s ease;
}

.alt-add-btn:hover {
    color: #ffffff;
}

.alt-flight-suggestion {
    display: flex;
    flex-direction: column;
}

.alt-flight-suggestion .alt-option-name {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.alt-flight-suggestion .alt-option-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.3;
}

.chat-message.visitor .message-bubble-static {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    text-align: right;
}

/* Itinerary Preview Styling */
.itinerary-preview {
    color: #ffffff;
    padding-left: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto; /* Allow internal scroll if content exceeds screen */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.itinerary-preview::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.itinerary-header {
    margin-bottom: 48px;
}

.itinerary-header h2, .visitor-name {
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0;
}

.itinerary-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 8px;
}

/* Slide 3: Visitor Profile Styles */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 48px;
}

.visitor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #3d4a5e; /* Neutral, elegant color */
    margin-right: 18px;
    flex-shrink: 0;
}

.visitor-name {
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0; /* Ensure no default margin affects alignment */
}

.past-trips-section {
    display: flex;
    flex-direction: column;
}

.past-trip-entry {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trip-info {
    display: flex;
    flex-direction: column;
}

.replan-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-family: inherit;
    text-transform: none;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 300;
}

.replan-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.past-trip-entry:last-child {
    border-bottom: none;
}

.trip-destination {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
}

.trip-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Trip Timeline */
.itinerary-timeline {
    position: relative;
    margin-bottom: 32px; /* Slightly reduced to accommodate flight details */
    padding: 10px 0;
}

/* Flight Details Section */
.itinerary-flight-details {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.flight-summary {
    margin-bottom: 24px;
}

.flight-summary:last-of-type {
    margin-bottom: 20px;
}

.flight-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.flight-route {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    letter-spacing: 0.01em;
}

.flight-cabin {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
}

.flight-schedule {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 4px;
}

.flight-time {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.flight-duration {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.flight-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    letter-spacing: 0.02em;
}

.flight-action-btn {
    background: none;
    border: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-family: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 300;
    transition: color 0.3s ease;
}

.flight-action-btn:hover {
    color: #ffffff;
}

.timeline-track {
    position: absolute;
    top: 13px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-points {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px; /* Controlled width for label alignment */
    position: relative;
    cursor: pointer;
}

/* Hotel Detail Section */
.detail-hotel {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.detail-hotel-img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.detail-hotel-info {
    display: flex;
    flex-direction: column;
}

.detail-hotel-name {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
}

/* Detail Item Structure (Restaurants, Transport, Activities) */
.detail-item {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.detail-item-info {
    display: flex;
    flex-direction: column;
}

.detail-item-name {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
}

.detail-item-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    line-height: 1.4;
}

.detail-action-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-align: left;
    padding: 0;
    margin-top: 4px; /* Reduced from 8px */
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    font-weight: 300;
    transition: color 0.3s ease;
}

.detail-action-btn:hover {
    color: rgba(255, 255, 255, 0.7);
}

#detail-restaurant-list + .detail-action-btn {
    margin-top: 12px;
}

.detail-restaurants p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.itinerary-confirmation {
    margin-top: 48px;
}

.confirmation-btn {
    background: rgba(255, 255, 255, 0.05); /* Reduced opacity */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Reduced opacity */
    color: rgba(255, 255, 255, 0.8); /* Slightly muted text */
    padding: 12px 28px; /* Slightly more compact */
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.85rem; /* Slightly smaller */
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.confirmation-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Itinerary Preview Styling */
.hotel-preview-card {
    position: absolute;
    bottom: 50px; /* Position above the dot and label area */
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 20;
}

.timeline-point:hover .hotel-preview-card {
    opacity: 1;
    visibility: visible;
}

.timeline-point:active .hotel-preview-card,
.timeline-point:focus .hotel-preview-card {
    opacity: 0;
    visibility: hidden;
}

.hotel-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.hotel-info {
    padding: 12px;
}

.hotel-name {
    display: block;
    font-size: 0.85rem;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-weight: 400;
    line-height: 1.2;
}

.hotel-stars {
    font-size: 0.75rem;
    color: #c5a059; /* Muted, premium gold/yellow */
    letter-spacing: 1px;
}

.point-dot {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-bottom: 12px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.timeline-point.active .point-dot {
    background: #ffffff;
    transform: scale(1.2);
}

.point-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.point-label .day {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
    font-weight: 300;
}

.point-label .location {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.itinerary-section {
    margin-bottom: 40px; /* Increased from 32px */
}

.itinerary-section h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
    font-weight: 600;
}

.itinerary-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.itinerary-list {
    list-style: none;
}

.itinerary-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dest-name {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
}

.dest-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* Replanned Proposal Brief Styles */
.brief-section-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.brief-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.brief-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.brief-action-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: opacity 0.3s ease, color 0.3s ease;
    font-weight: 300;
}

.brief-action-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.brief-action-btn.primary:hover {
    color: #ffffff;
}

.brief-action-btn.accepted {
    color: #c5a059; /* Gold color to indicate acceptance */
    pointer-events: none;
}

.brief-action-btn.accepted::after {
    content: " — Selected";
    opacity: 0.7;
}

.brief-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.brief-img {
    width: 60px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.brief-img.small {
    width: 48px;
    height: 36px;
}

.brief-item-title {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.brief-item-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    font-weight: 300;
}

/* Mobile adjustments for Slide 2 */
@media (max-width: 1024px) {
    .planning-container {
        flex-direction: column;
        gap: 40px;
        height: 100%;
        top: 50%;
        padding: 60px 20px;
    }
    .planning-column {
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
    }
.conversation-col, .itinerary-preview {
        flex: 1 1 auto;
        min-height: 0;
    }
    .itinerary-preview {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 40px;
    }
    .itinerary-header h2, .visitor-name {
        font-size: 1.8rem;
    }
}
