:root {
            --color-primary: #0D5C63;
            --color-primary-dark: #0A4C53;
            --color-text: #0A2E36;
            --color-bg: #FDFBF7;
            --color-muted: #E0E7E9;
        }
        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--color-bg); /* Off-white background */
            color: var(--color-text); /* Dark Teal Text */
        }
        .chat-bubble-user { background-color: var(--color-primary); color: white; }
        .chat-bubble-ai { background-color: var(--color-muted); color: var(--color-text); }
        .typing-indicator span {
            height: 8px; width: 8px; background-color: #9CA3AF; border-radius: 50%; display: inline-block;
            animation: bounce 1.4s infinite ease-in-out both;
        }
        .typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
        .typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
        @keyframes bounce { 0%,80%,100%{transform:scale(0)} 40%{transform:scale(1)} }
        .modal-backdrop {
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background-color: rgba(0,0,0,0.5); z-index: 3000; justify-content: center; align-items: flex-start;
            overflow-y: auto; padding: 40px 20px;
        }
    .primary-btn { background-color: var(--color-primary); color: white; }
    .primary-btn:hover { background-color: var(--color-primary-dark); }
    .primary-text { color: var(--color-primary); }
    .primary-border { border-color: var(--color-primary); }
    .secondary-bg { background-color: var(--color-bg); }

        /* Improved Prose styling for AI output */
        .prose a { color: #0D5C63; text-decoration: underline; }
        .prose strong { font-weight: 800; display: inline; margin-top: 0; margin-bottom: 0; }
        .prose p { margin-bottom: 1em; }
        .prose ul, .prose ol { margin-bottom: 1em; }

        [contenteditable]:focus { outline: 2px solid #0D5C63; background-color: #f0fafa; border-radius: 4px; }
        .sortable-ghost { opacity: 0.4; background: #cce7e8; }

    .tab-btn.active { background-color: var(--color-primary); color: white; border-color: var(--color-primary); }

        /* Make .active match your data-selected style for interest chips */
        .interest-btn[data-selected="true"],
        .interest-btn.active {
            background-color: var(--color-primary);
            color: white;
            border-color: var(--color-primary);
        }
        /* Enhanced Itinerary Styling */
        .itinerary { 
            line-height: 1.7; 
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            max-width: 100%;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        
        /* Day Blocks */
        .day-block {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            page-break-inside: avoid;
        }
        .day-block:hover {
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            transform: translateY(-2px);
        }
        
        /* Day Header */
        .day-header {
            position: relative;
        }
        .day-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, #3b82f6, transparent);
        }
        
        /* Activity Items */
        .activity-item {
            position: relative;
            padding-bottom: 1.5rem;
            margin-bottom: 0.5rem;
        }
        .activity-item:not(:last-child)::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 4.5rem;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, #f1f5f9, transparent);
        }
        .activity-item:hover .activity-content {
            background-color: rgba(59, 130, 246, 0.02);
            border-radius: 0.5rem;
            padding: 0.75rem;
            margin: -0.75rem;
            transition: all 0.2s ease;
        }
        
        /* Seamlessly Integrated Venue Links */
        .venue-link {
            display: inline;
            text-decoration: underline;
            text-decoration-style: dotted;
            text-underline-offset: 2px;
            transition: all 0.2s ease;
            cursor: pointer;
        }
        .venue-link:hover {
            text-decoration-style: solid;
            text-shadow: 0 1px 2px rgba(59, 130, 246, 0.2);
        }
        
        /* Venue Fallback Styling */
        .venue-fallback {
            display: inline;
            transition: all 0.2s ease;
        }
        
        /* Enhanced Daily Tips */
        .daily-tip {
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }
        .daily-tip::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
            pointer-events: none;
        }
        .tip-content {
            position: relative;
            z-index: 1;
        }
        .tip-content h6 {
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-size: 0.75rem;
        }
        .tip-content div {
            text-align: justify;
            hyphens: auto;
            line-height: 1.6;
        }
        
        /* Enhanced Booking Suggestions */
        .booking-suggestions {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }
        .booking-suggestions h3 {
            color: #1f2937;
            font-size: 1.25rem;
            margin-bottom: 1rem;
            font-weight: 700;
        }
        .booking-suggestions h4 { 
            color: var(--color-primary); 
            font-size: 1.1rem;
            margin-bottom: 0.75rem;
            font-weight: 600;
        }
        .booking-suggestions a {
            color: #3b82f6;
            font-weight: 500;
            transition: all 0.2s ease;
            text-decoration: underline;
            text-decoration-style: dotted;
            text-underline-offset: 2px;
        }
        .booking-suggestions a:hover {
            color: #1d4ed8;
            text-decoration-style: solid;
        }
        .booking-suggestions div {
            text-align: left;
        }

    .z-kimatai-header { z-index: 2000; }
    .kimatai-modal-scroll { max-height: calc(100vh - 80px); overflow-y: auto; }
    .kimatai-spinner-cutout { border-right-color: transparent; border-bottom-color: transparent; }
    .kimatai-object-contain { object-fit: contain; }
        
        /* Activity Description Enhancements */
        .activity-description {
            word-break: break-word;
            overflow-wrap: break-word;
            text-align: left;
        }
        .activity-description p {
            margin: 0;
            text-indent: 0;
            line-height: 1.75;
        }
        
        /* Time Badge Enhancements */
        .badge-time {
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.025em;
            color: white !important;
            background-color: #2563eb !important;
            font-weight: 600;
            text-align: center;
            min-width: 4.5rem;
            box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
        }
        
        /* Time Badge Container */
        .time-badge-container {
            padding-top: 0.125rem;
        }
        
        /* Activity Content */
        .activity-content {
            transition: all 0.2s ease;
        }
        
        /* Professional Typography */
        .activity-description strong,
        .activity-description .venue-link {
            font-weight: 600;
        }
        
        /* Paragraph Spacing */
        .activity-description p + p {
            margin-top: 0.75rem;
        }
        
        /* Better Text Rendering */
        .itinerary * {
            text-rendering: optimizeLegibility;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        /* Loading State */
        .itinerary-loading {
            opacity: 0.6;
            pointer-events: none;
            filter: blur(1px);
            transition: all 0.3s ease;
        }
        
        /* Responsive Improvements */
        @media (max-width: 768px) {
            .itinerary {
                font-size: 0.95rem;
                line-height: 1.65;
            }
            .day-block {
                margin-bottom: 1.5rem;
                border-radius: 1rem;
                box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
            }
            .day-header {
                padding: 1rem 1.25rem;
            }
            .day-content {
                padding: 1.25rem;
            }
            .activity-item {
                padding-bottom: 1.25rem;
            }
            .activity-item .flex {
                flex-direction: column;
                gap: 0.75rem;
                align-items: stretch;
            }
            .time-badge-container {
                padding-top: 0;
            }
            .badge-time {
                align-self: flex-start;
                margin-bottom: 0.5rem;
                font-size: 0.875rem;
                padding: 0.5rem 1rem;
            }
            .activity-description {
                text-align: left;
                font-size: 0.95rem;
                line-height: 1.7;
            }
            .venue-link {
                display: inline;
                margin: 0;
                font-size: 0.95rem;
            }
            .daily-tip {
                margin-top: 1.25rem;
                padding: 1rem;
            }
            .tip-content h6 {
                font-size: 0.7rem;
            }
            .tip-content div {
                font-size: 0.875rem;
                line-height: 1.65;
            }
        }
        
        @media (max-width: 480px) {
            .day-header {
                padding: 0.875rem 1rem;
            }
            .day-content {
                padding: 1rem;
            }
            .activity-description {
                font-size: 0.9rem;
            }
            .badge-time {
                font-size: 0.8rem;
                padding: 0.375rem 0.875rem;
            }
        }

        /* --- Editable Itinerary Professional Styling --- */
        .day-group { position: relative; }
        .day-group.edit-collapsed .activity-list { display:none; }
        .day-group-toolbar { background: linear-gradient(90deg,#0D5C63 0%,#0A4C53 100%); color:#fff; border-radius:6px; padding:.5rem .75rem; display:flex; align-items:center; gap:.5rem; box-shadow:0 2px 4px rgba(0,0,0,.08); }
        .day-group-toolbar input.day-title-input { background: rgba(255,255,255,0.15); color:#fff; border:1px solid rgba(255,255,255,0.3); }
        .day-group-toolbar input.day-title-input::placeholder { color:rgba(255,255,255,0.6); }
        .day-group-toolbar button, .day-group-toolbar .icon-btn { display:inline-flex; align-items:center; justify-content:center; }
        .activity-item { transition:background .15s, box-shadow .15s; }
        .activity-item:focus-within { box-shadow:0 0 0 2px #0D5C6333; }
        .activity-item.dragging { opacity:.6; }
        .activity-item .activity-desc-input { line-height:1.3; }
        .activity-item .activity-time-input { font-weight:500; }
        .drag-helper-hint { font-size:.65rem; letter-spacing:.05em; text-transform:uppercase; color:#64748b; }
        .collapse-indicator { transition: transform .2s; }
        .day-group.edit-collapsed .collapse-indicator { transform: rotate(-90deg); }
        .day-group-footer { margin-top:.5rem; display:flex; justify-content:space-between; align-items:center; }
        .activity-item:hover { background:#ffffff; }
        .activity-list { padding-left:0; }
        .activity-item textarea { min-height:38px; }
        .inline-badge { background:#0D5C63; color:#fff; font-size:.55rem; font-weight:600; padding:2px 6px; border-radius:999px; letter-spacing:.05em; }
        .pro-edit-hint { font-size:.7rem; color:#475569; margin-left:.25rem; }
        /* Toggle switch styling */
        .toggle-switch-wrapper { display: flex; align-items: center; gap: 0.5rem; }
        .toggle-switch { position: relative; display: inline-block; width: 40px; height: 20px; }
        .toggle-switch input { opacity: 0; width: 0; height: 0; }
        .toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .3s; border-radius: 20px; }
        .toggle-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: white; transition: .3s; border-radius: 50%; }
        .toggle-switch input:checked + .toggle-slider { background-color: #0D5C63; }
        .toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }
        
        /* Progressive Map Animations */
        @keyframes markerPop {
            0% { transform: scale(0) rotate(0deg); opacity: 0; }
            50% { transform: scale(1.3) rotate(180deg); opacity: 0.8; }
            100% { transform: scale(1) rotate(360deg); opacity: 1; }
        }
        
        @keyframes pulse {
            0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
            100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
        }
        
        .progressive-status {
            animation: pulse 2s infinite;
        }
        
        .map-container, .saved-map-container {
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            overflow: hidden;
            margin: 0;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            background: white;
            height: 100%;
            min-height: 600px;
            z-index: 100;
            width: 100%;
            position: relative;
        }
        
        #map-section-wrapper {
            display: flex;
            flex-direction: column;
            margin-bottom: 0;
            padding-bottom: 0;
            height: fit-content !important;
            max-height: none !important;
        }
        
        @media (max-width: 1023px) {
            .map-container, .saved-map-container {
                margin: 1rem 0;
                min-height: 450px;
            }
        }
        
        .map-header {
            background: #f8fafc;
            padding: 12px 16px;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .map-toggle-btn {
            padding: 6px 12px;
            border-radius: 6px;
            border: none;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 14px;
        }
        
        #progressive-map {
            width: 100% !important;
            height: 450px !important;
            position: relative !important;
            border-radius: 16px !important;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
            border: 2px solid #e5e7eb !important;
            transition: all 0.3s ease !important;
            overflow: hidden !important;
            z-index: 1 !important;
            pointer-events: auto !important;
        }
        
        #progressive-map:hover {
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
            transform: translateY(-2px) !important;
        }
        
        /* Progressive Map Container Styles */
        .progressive-map-container {
            margin: 20px 0 0 0;
            border-radius: 16px;
            position: relative;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 4px;
        }
        
        .progressive-status {
            position: absolute;
            bottom: 15px;
            right: 15px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 10px 16px;
            border-radius: 25px;
            font-size: 13px;
            box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
            z-index: 1000;
            font-weight: 600;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }
        
        .progressive-status.finished {
            animation: none;
            background: linear-gradient(135deg, #10b981, #059669);
        }
        
        .map-title {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(255, 255, 255, 0.95);
            color: #374151;
            padding: 10px 16px;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 700;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            backdrop-filter: blur(10px);
        }
        
        /* Smooth marker animations */
        @keyframes markerPop {
            0% { 
                transform: scale(0); 
                opacity: 0; 
            }
            60% { 
                transform: scale(1.1); 
                opacity: 0.9; 
            }
            100% { 
                transform: scale(1); 
                opacity: 1; 
            }
        }
        
        /* Removed custom marker styling - using Leaflet defaults */
        
        /* Smooth route line animation */
        @keyframes routeFadeIn {
            from { 
                opacity: 0;
                stroke-width: 1;
            }
            to { 
                opacity: 0.7;
                stroke-width: 3;
            }
        }
        
        .route-line {
            stroke: #667eea !important;
            stroke-width: 3 !important;
            opacity: 0.7 !important;
            stroke-linecap: round !important;
            stroke-linejoin: round !important;
            animation: routeFadeIn 0.8s ease-out !important;
            filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.2)) !important;
            transition: all 0.3s ease !important;
        }
        
        /* Custom popup styling */
        .leaflet-popup-content-wrapper {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
            border-radius: 12px !important;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
            border: 1px solid #e5e7eb !important;
        }
        
        .leaflet-popup-content {
            margin: 16px !important;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        }
        
        .leaflet-popup-tip {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
            border: 1px solid #e5e7eb !important;
        }
        
        /* Loading animation for map */
        @keyframes mapLoad {
            0% { 
                opacity: 0; 
                transform: scale(0.95); 
            }
            100% { 
                opacity: 1; 
                transform: scale(1); 
            }
        }
        
        .progressive-map-container.loading {
            animation: mapLoad 0.6s ease-out;
        }
        
        /* Zoom controls styling */
        .leaflet-control-zoom a {
            background: linear-gradient(135deg, #667eea, #764ba2) !important;
            color: white !important;
            border: none !important;
            box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
            transition: all 0.3s ease !important;
        }
        
        .leaflet-control-zoom a:hover {
            background: linear-gradient(135deg, #764ba2, #667eea) !important;
            transform: scale(1.05) !important;
        }
        
        /* Enhanced Standard Marker Styles */
        .leaflet-marker-icon.leaflet-div-icon {
            background: transparent !important;
            border: none !important;
        }
        
        /* Default Leaflet markers - no custom styling */
        
        @keyframes pulse {
            0% {
                transform: scale(0.8);
                opacity: 1;
            }
            100% {
                transform: scale(2);
                opacity: 0;
            }
        }
        
        /* Enhanced Popup Styles */
        .enhanced-popup {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        
        .popup-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .popup-header h3 {
            margin: 0;
            font-size: 16px;
            font-weight: 700;
            color: #1f2937;
            line-height: 1.3;
            flex: 1;
        }
        
        .popup-badge {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            margin-left: 8px;
            white-space: nowrap;
        }
        
        .popup-content {
            color: #6b7280;
        }
        
        .popup-description {
            margin: 0 0 12px 0;
            font-size: 14px;
            line-height: 1.4;
        }
        
        .popup-actions {
            display: flex;
            gap: 8px;
        }
        
        .popup-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.2s ease;
        }
        
        .popup-link:hover {
            background: linear-gradient(135deg, #764ba2, #667eea);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }
        
        .custom-popup .leaflet-popup-content-wrapper {
            padding: 0 !important;
        }
        
        .custom-popup .leaflet-popup-content {
            margin: 0 !important;
            padding: 16px !important;
        }
        
        /* Layer Control Styling */
        .leaflet-control-layers {
            background: rgba(255, 255, 255, 0.95) !important;
            backdrop-filter: blur(10px) !important;
            border-radius: 12px !important;
            border: 1px solid rgba(102, 126, 234, 0.2) !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
            padding: 8px !important;
        }
        
        .leaflet-control-layers-toggle {
            background: linear-gradient(135deg, #667eea, #764ba2) !important;
            color: white !important;
            border-radius: 8px !important;
            width: 32px !important;
            height: 32px !important;
        }
        
        .leaflet-control-layers-list {
            padding: 8px !important;
        }
        
        .leaflet-control-layers label {
            font-weight: 500 !important;
            color: #374151 !important;
            margin-bottom: 4px !important;
            font-size: 13px !important;
        }
        
        .leaflet-control-layers input[type="radio"] {
            accent-color: #667eea !important;
        }
        
        /* Enhanced Edit Mode Styles */
        .edit-mode .activity-item {
            transition: all 0.2s ease;
        }
        
        .activity-item:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .activity-item.dragging {
            transform: rotate(3deg) scale(1.05);
            z-index: 1000;
            box-shadow: 0 12px 40px rgba(16, 185, 129, 0.4);
            border: 2px solid #10b981;
            background: linear-gradient(135deg, #f0fdfa, #ccfbf1) !important;
            transition: all 0.2s ease;
        }
        
        .activity-item.drag-over {
            transform: translateY(-2px);
            border-color: #3b82f6 !important;
            background-color: #eff6ff !important;
            box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
        }

        .activity-item.drag-hover {
            transform: translateY(-1px);
            border-color: #10b981 !important;
            background: linear-gradient(135deg, #f0fdfa, #ccfbf1) !important;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }
        
        .reorder-buttons {
            display: flex;
            flex-direction: column;
            gap: 2px;
            margin-left: 8px;
            align-items: center;
        }
        
        .reorder-btn {
            background: #3b82f6;
            color: white;
            border: none;
            padding: 4px 8px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 24px;
            height: 24px;
        }
        
        .reorder-btn:hover {
            background: #2563eb;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
        }
        
        .reorder-btn:disabled {
            background: #9ca3af;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .activity-reorder-buttons {
            display: flex;
            flex-direction: column;
            gap: 1px;
            margin-left: 6px;
            align-items: center;
        }
        
        .activity-reorder-btn {
            background: #10b981;
            color: white;
            border: none;
            padding: 2px 6px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 10px;
            font-weight: 500;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 20px;
            height: 20px;
        }
        
        .activity-reorder-btn:hover {
            background: #059669;
            transform: translateY(-1px);
            box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
        }
        
        .activity-reorder-btn:disabled {
            background: #9ca3af;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        @keyframes activity-drop-pulse {
            0%, 100% { 
                box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
                filter: brightness(1);
            }
            50% { 
                box-shadow: 0 6px 20px rgba(16, 185, 129, 0.8);
                filter: brightness(1.3);
            }
        }
        
        @keyframes pulse-glow {
            0%, 100% { 
                box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
            }
            50% { 
                box-shadow: 0 4px 16px rgba(59, 130, 246, 0.6);
            }
        }

        /* Day reordering with buttons */
        .day-reorder-buttons {
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin: 8px 0;
            align-items: center;
        }
        
        .day-reorder-btn {
            background: #3b82f6;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 32px;
            height: 32px;
        }
        
        .day-reorder-btn:hover {
            background: #2563eb;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
        }
        
        .day-reorder-btn:disabled {
            background: #9ca3af;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        @keyframes day-drop-pulse {
            0%, 100% { 
                box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
                filter: brightness(1);
            }
            50% { 
                box-shadow: 0 8px 24px rgba(59, 130, 246, 0.8);
                filter: brightness(1.3);
            }
        }

        /* Auto-scroll indicator */
        .scroll-indicator {
            position: fixed;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 12px;
            z-index: 10000;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .scroll-indicator.show {
            opacity: 1;
        }
        
        /* Professional button styling */
        button[id$="-btn"] {
            transition: all 0.2s ease;
        }
        
        button[id$="-btn"]:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        button[id$="-btn"]:active {
            transform: translateY(0);
        }
        
        /* Edit instructions animation */
        #edit-instructions {
            animation: slideDown 0.3s ease-out;
        }
        
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Sortable placeholder styling */
        .sortable-placeholder {
            background: #e3f2fd;
            border: 2px dashed #2196f3;
            border-radius: 8px;
            height: 60px;
            margin: 8px 0;
        }
        
        /* Map styling */
        .itinerary-map {
            height: 400px;
            width: 100%;
            border-radius: 12px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            margin: 16px 0;
        }
        
        .map-container, .saved-map-container {
            position: relative;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 16px;
            margin: 16px 0;
        }
        
        .map-header {
            display: flex;
            align-items: center;
            justify-content: between;
            margin-bottom: 12px;
        }
        
        .map-toggle-btn {
            background: #3b82f6;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .map-toggle-btn:hover {
            background: #2563eb;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
        }
        
        .map-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 200px;
            color: #64748b;
            font-size: 14px;
        }
        
        /* Custom map marker styles */
        .custom-marker {
            background: #3b82f6;
            color: white;
            border: 3px solid white;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
        
        .leaflet-routing-line {
            color: #3b82f6 !important;
            opacity: 0.8 !important;
        }

        /* Follow-up Chat Styling */
        .inline-chat-chip {
            transition: all 0.2s ease;
            cursor: pointer;
            font-size: 0.75rem;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
        }
        
        .inline-chat-chip:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }
        
        .inline-chat-chip:active {
            transform: translateY(0);
        }
        
        /* Action buttons - force visibility */
        #action-buttons {
            position: relative !important;
            z-index: 10 !important;
            background-color: white !important;
            border-top: 1px solid #e5e7eb !important;
            display: flex !important;
        }
        
        #action-buttons button {
            opacity: 1 !important;
            visibility: visible !important;
            display: inline-flex !important;
            min-width: 120px !important;
            min-height: 40px !important;
        }
        
        /* Mobile responsive action buttons */
        @media (max-width: 768px) {
            #action-buttons {
                flex-direction: column !important;
                gap: 0.5rem !important;
                padding: 0.75rem !important;
            }
            
            #action-buttons button {
                width: 100% !important;
                min-width: unset !important;
                min-height: 44px !important;
                justify-content: center !important;
                font-size: 0.875rem !important;
                padding: 0.625rem 0.75rem !important;
            }
            
            #action-buttons button i {
                width: 1rem !important;
                height: 1rem !important;
            }
            
            #action-buttons button span {
                font-size: 0.875rem !important;
            }
        }
        
        #share-button {
            background-color: #2563eb !important;
            color: white !important;
        }
        
        #save-button {
            background-color: #0D5C63 !important;
            color: white !important;
        }
        
        #download-button {
            background-color: #e5e7eb !important;
            color: #1f2937 !important;
        }
        
        #show-map-button {
            background-color: #16a34a !important;
            color: white !important;
        }
        
        #persistent-chat-bar {
            position: relative !important;
            z-index: 10 !important;
        }

        /* Splash Screen */
        #splash-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #FDFBF7;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
        }
        
        #splash-screen.hidden-splash {
            opacity: 0;
            visibility: hidden;
        }
        
        .splash-logo {
            width: 180px;
            height: 180px;
            margin-bottom: 20px;
            animation: float 3s ease-in-out infinite;
        }
        
        .splash-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid rgba(13, 92, 99, 0.1);
            border-radius: 50%;
            border-top-color: #0D5C63;
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }
