/* Modern Slate & Mint Design Tokens */
:root {
    --bg-dark: #070a0e;
    --bg-slate-900: #0d131a;
    --bg-slate-800: #141d27;
    --bg-slate-700: #1d2936;
    
    --accent-mint: hsl(158, 64%, 52%);
    --accent-mint-glow: hsla(158, 64%, 52%, 0.15);
    --accent-mint-hover: hsl(158, 70%, 45%);
    
    --accent-cyan: hsl(188, 78%, 50%);
    --accent-cyan-glow: hsla(188, 78%, 50%, 0.15);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(13, 19, 26, 0.65);
    --bg-glass-hover: rgba(20, 29, 39, 0.8);
    
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 20px 0 hsla(158, 64%, 52%, 0.2);
    
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Main Container Layout */
.app-container {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
}

/* Sidebar & Glassmorphism */
.sidebar {
    width: 420px;
    height: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px var(--accent-mint));
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-mint) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.settings-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.settings-btn:hover {
    background: var(--accent-mint-glow);
    color: var(--accent-mint);
    border-color: var(--accent-mint);
    transform: rotate(45deg);
}

/* Scrollbar Style */
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: var(--bg-slate-700);
    border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Form Styles */
.planner-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"], select {
    background: var(--bg-slate-800);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 14px 16px;
    font-family: var(--font-main);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}

input[type="text"]:focus, select:focus {
    border-color: var(--accent-mint);
    box-shadow: var(--accent-mint-glow) 0 0 0 3px;
    background: var(--bg-slate-700);
}

/* Style Grid Cards */
.travel-style-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.style-card {
    cursor: pointer;
    position: relative;
}

.style-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.style-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: var(--bg-slate-800);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    text-align: center;
    gap: 8px;
    transition: var(--transition-smooth);
    min-height: 86px;
}

.style-icon {
    font-size: 22px;
    transition: var(--transition-smooth);
}

.style-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.style-card:hover .style-card-content {
    background: var(--bg-slate-700);
    border-color: rgba(255, 255, 255, 0.15);
}

.style-card input[type="radio"]:checked + .style-card-content {
    background: var(--accent-mint-glow);
    border-color: var(--accent-mint);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.style-card input[type="radio"]:checked + .style-card-content .style-label {
    color: var(--text-primary);
}

.style-card input[type="radio"]:checked + .style-card-content .style-icon {
    transform: scale(1.15);
}

/* Submit Button with Glow */
.submit-btn {
    position: relative;
    background: var(--accent-mint);
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 15px;
    color: #070a0e;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    margin-top: 10px;
    box-shadow: var(--shadow-glow);
}

.submit-btn:hover {
    background: var(--accent-mint-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px 0 hsla(158, 64%, 52%, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Loading & Compass Animation */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    flex-grow: 1;
}

.spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.glowing-spinner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(16, 185, 129, 0.1);
    border-top: 3px solid var(--accent-mint);
    border-right: 3px solid var(--accent-cyan);
    animation: spin 1.5s linear infinite;
}

.compass-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 32px;
    background: linear-gradient(to bottom, var(--accent-cyan) 50%, var(--accent-mint) 50%);
    margin-left: -3px;
    margin-top: -16px;
    border-radius: 3px;
    animation: rotateNeedle 3s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.loading-state h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.loading-state p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateNeedle {
    0% { transform: rotate(0deg); }
    30% { transform: rotate(210deg); }
    50% { transform: rotate(180deg); }
    80% { transform: rotate(390deg); }
    100% { transform: rotate(360deg); }
}

/* Results Content */
.results-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.results-header h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.results-header p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Timeline Components */
.timeline {
    position: relative;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-mint), var(--accent-cyan));
    opacity: 0.3;
}

.day-section {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.day-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: -20px;
}

.day-badge {
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-cyan));
    color: #070a0e;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    text-transform: uppercase;
}

.day-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.place-card {
    background: var(--bg-slate-800);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.place-card:hover {
    background: var(--bg-slate-700);
    border-color: var(--accent-mint);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.place-card.active {
    background: var(--accent-mint-glow);
    border-color: var(--accent-mint);
}

.place-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.place-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.place-meta {
    display: flex;
    gap: 8px;
}

.place-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

.place-badge.highlight {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-mint);
    border-color: rgba(16, 185, 129, 0.2);
}

.place-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Map Container styling */
.map-view {
    flex-grow: 1;
    height: 100%;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
}

/* Settings Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 10, 14, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-slate-900);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-card {
    transform: translateY(0);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 800;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-info-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-info-text a {
    color: var(--accent-mint);
    text-decoration: none;
    font-weight: 600;
}

.modal-info-text a:hover {
    text-decoration: underline;
}

.api-status-banner {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
}

.api-status-banner.warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.api-status-banner.success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-mint);
}

.modal-footer {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn {
    font-family: var(--font-main);
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--accent-mint);
    color: var(--bg-dark);
}

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

.btn-secondary {
    background: var(--bg-slate-700);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: var(--bg-slate-850);
    border-color: var(--text-muted);
}

/* Leaflet Custom Marker & Dark theme popup overrides */
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: var(--bg-slate-900) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-soft) !important;
    border-radius: 12px !important;
}

.leaflet-popup-content h4 {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--accent-mint);
}

.leaflet-popup-content p {
    font-family: var(--font-main);
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--text-secondary) !important;
    top: 8px !important;
    right: 8px !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--text-primary) !important;
}

/* Custom Marker Styling */
.custom-route-marker {
    background: none;
    border: none;
}

.marker-pin {
    width: 20px;
    height: 20px;
    background: var(--accent-mint);
    border: 3px solid #070a0e;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 10px;
    color: #070a0e;
    transition: var(--transition-smooth);
}

.marker-pin.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
    transform: scale(1.2);
}

/* Mobile Toggle Layout button */
.mobile-toggle-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-mint);
    color: #070a0e;
    border: none;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    z-index: 1100;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.mobile-toggle-btn .bar {
    width: 20px;
    height: 2px;
    background-color: #070a0e;
    transition: var(--transition-smooth);
}

/* Sidebar toggle open states on mobile */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        max-width: 380px;
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .mobile-toggle-btn {
        display: flex;
    }
    
    .sidebar.open ~ .mobile-toggle-btn {
        background: var(--bg-slate-700);
        box-shadow: var(--shadow-soft);
    }
    
    .sidebar.open ~ .mobile-toggle-btn .bar {
        background-color: var(--text-primary);
    }
    
    .sidebar.open ~ .mobile-toggle-btn .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .sidebar.open ~ .mobile-toggle-btn .bar:nth-child(2) {
        opacity: 0;
    }
    
    .sidebar.open ~ .mobile-toggle-btn .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* Animated route line styling */
.animated-route-line {
    stroke-dasharray: 6, 8;
    animation: flowRoute 1.2s linear infinite;
}

@keyframes flowRoute {
    from {
        stroke-dashoffset: 28;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Pulsing Active Pin animation */
@keyframes markerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 211, 238, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
    }
}

.marker-pin.active {
    background: var(--accent-cyan) !important;
    box-shadow: 0 0 15px var(--accent-cyan);
    transform: scale(1.25);
    animation: markerPulse 1.5s infinite;
}

/* Staggered Fade-in for Place Cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.place-card {
    opacity: 0;
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Add delays for first 6 items to stagger them nicely */
.place-card:nth-child(1) { animation-delay: 0.05s; }
.place-card:nth-child(2) { animation-delay: 0.1s; }
.place-card:nth-child(3) { animation-delay: 0.15s; }
.place-card:nth-child(4) { animation-delay: 0.2s; }
.place-card:nth-child(5) { animation-delay: 0.25s; }
.place-card:nth-child(6) { animation-delay: 0.3s; }

/* Trip Overview Card Styling */
.overview-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.overview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.overview-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.overview-label {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.overview-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Visitor Tip Box Styling */
.visitor-tip-box {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.06);
    border-left: 3px solid var(--accent-mint);
    border-radius: 4px 10px 10px 4px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.tip-icon {
    font-size: 14px;
    margin-top: 1px;
}

.tip-text {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.45;
    font-style: italic;
}

/* Results Actions Bar */
.results-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
}

.btn-action {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-action:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-mint);
    color: var(--text-primary);
}

.currency-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 2px 8px;
    border-radius: 8px;
}

.currency-selector-wrapper label {
    font-size: 12px;
}

.currency-select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.currency-select option {
    background: var(--bg-slate-800);
    color: var(--text-primary);
}

/* Day Filter Tabs Bar */
.day-filter-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.day-filter-tabs::-webkit-scrollbar {
    height: 4px;
}

.day-filter-tabs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.filter-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.filter-tab.active {
    background: var(--accent-mint);
    border-color: var(--accent-mint);
    color: #070a0e;
}

/* Place Card Controls (Reordering & Deleting) */
.place-card {
    position: relative;
    padding-top: 20px; /* Allow spacing for controls */
}

.place-card-controls {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.place-card:hover .place-card-controls {
    opacity: 1;
}

.card-control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    transition: var(--transition-smooth);
}

.card-control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.card-control-btn.delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* Add Spot Button */
.add-spot-btn {
    background: rgba(16, 185, 129, 0.04);
    border: 1px dashed rgba(16, 185, 129, 0.4);
    color: var(--accent-mint);
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.add-spot-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-style: solid;
    border-color: var(--accent-mint);
}

/* Printing Layout - Book format */
@media print {
    /* Reset background colors and elements for paper */
    body, html {
        background: #ffffff !important;
        color: #000000 !important;
        height: auto !important;
        overflow: visible !important;
        font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    }

    .app-container {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Hide everything that is interactive or visual noise on paper */
    .map-view, #map, .mobile-toggle-btn, .sidebar-header, .results-actions, 
    .day-filter-tabs, .modal-overlay, .settings-modal, .form-container, 
    #new-plan-btn, .place-card-controls, .add-spot-btn {
        display: none !important;
    }

    /* Expand sidebar container to take whole paper width */
    .sidebar {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        position: relative !important;
        overflow: visible !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .results-container {
        display: block !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .results-header h2 {
        color: #000000 !important;
        font-size: 28px !important;
        text-align: center;
        border-bottom: 2px solid #000000;
        padding-bottom: 10px;
    }

    .results-header p {
        color: #333333 !important;
        font-style: italic;
        text-align: center;
        margin-bottom: 24px;
    }

    .overview-card {
        background: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
        color: #000000 !important;
        box-shadow: none !important;
        margin-bottom: 30px !important;
    }

    .overview-label {
        color: #495057 !important;
    }

    .overview-val {
        color: #000000 !important;
    }

    .timeline {
        display: block !important;
    }

    .day-section {
        margin-bottom: 40px !important;
        page-break-inside: avoid; /* Prevent day split across pages */
    }

    .day-header {
        border-bottom: 1px solid #ced4da;
        padding-bottom: 8px;
        margin-bottom: 16px !important;
    }

    .day-badge {
        background: #000000 !important;
        color: #ffffff !important;
    }

    .day-title {
        color: #000000 !important;
        font-weight: 700;
    }

    .place-card {
        background: #ffffff !important;
        border: 1px solid #dee2e6 !important;
        border-radius: 8px !important;
        padding: 12px !important;
        margin-bottom: 16px !important;
        box-shadow: none !important;
        page-break-inside: avoid; /* Prevent card splitting */
    }

    .place-name {
        color: #000000 !important;
        font-weight: 700 !important;
    }

    .place-badge {
        background: #f1f3f5 !important;
        color: #495057 !important;
        border: 1px solid #dee2e6 !important;
    }

    .place-badge.highlight {
        background: #e6fcf5 !important;
        color: #0ca678 !important;
        border-color: #96f2d7 !important;
    }

    .place-desc {
        color: #212529 !important;
    }

    .visitor-tip-box {
        background: #fff9db !important; /* Soft yellow for tips in print */
        border-left: 3px solid #fcc419 !important;
        color: #212529 !important;
    }

    .tip-text {
        color: #212529 !important;
    }
}


