/* ========================================
   ReVie - Styles CSS Mobile-First
   Economie circulaire ADEME
   ======================================== */

:root {
    /* Colors - Nature/Eco theme */
    --primary: #2d5a27;
    --primary-light: #4a7c43;
    --primary-dark: #1e3d1a;
    --secondary: #f4a261;
    --secondary-light: #f7bc8a;
    --accent: #e76f51;
    --success: #52b788;
    --warning: #f4a261;
    --error: #e63946;

    /* Neutrals */
    --bg-main: #f8f9f7;
    --bg-card: #ffffff;
    --bg-panel: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a;
    --text-muted: #8a8a8a;
    --border: #e5e5e5;
    --border-light: #f0f0f0;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Z-index layers */
    --z-panel: 100;
    --z-controls: 200;
    --z-details: 300;
    --z-overlay: 400;
    --z-toast: 500;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select {
    font-family: inherit;
    font-size: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ========================================
   App Container
   ======================================== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* ========================================
   Header
   ======================================== */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--space-md);
    flex-shrink: 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 0.85rem;
    opacity: 0.9;
    display: none;
}

/* ========================================
   Main Layout
   ======================================== */
.main {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
}

/* ========================================
   Assistant Panel
   ======================================== */
.assistant-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 380px;
    background: var(--bg-panel);
    z-index: var(--z-panel);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-xl);
}

.assistant-panel.open {
    transform: translateX(0);
}

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

.panel-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.panel-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.panel-toggle:hover {
    background: var(--border);
}

.panel-toggle span {
    width: 16px;
    height: 2px;
    background: var(--text-secondary);
    position: relative;
    transform: rotate(45deg);
}

.panel-toggle span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    transform: rotate(90deg);
}

/* ========================================
   Assistant Chat
   ======================================== */
.assistant-chat {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.chat-bubble {
    max-width: 90%;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    animation: fadeIn 0.3s ease;
}

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

.chat-bubble.bot {
    background: var(--bg-main);
    align-self: flex-start;
    border-bottom-left-radius: var(--radius-sm);
}

.chat-bubble.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: var(--radius-sm);
}

.chat-bubble p {
    margin-bottom: var(--space-md);
}

.chat-bubble p:last-child {
    margin-bottom: 0;
}

/* Quick Action Buttons */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    text-align: center;
}

.quick-btn:hover, .quick-btn:focus {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-btn .btn-icon {
    font-size: 1.5rem;
}

.quick-btn span:last-child {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Object Selection */
.object-selection {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.object-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.object-btn:hover, .object-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========================================
   Chat Input Section
   ======================================== */
.chat-input-section {
    padding: var(--space-md);
    border-top: 1px solid var(--border-light);
    background: var(--bg-main);
}

.chat-form {
    margin-bottom: var(--space-md);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.chat-input-wrapper:focus-within {
    border-color: var(--primary);
}

.chat-input-wrapper input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.chat-send-btn {
    padding: var(--space-sm) var(--space-md);
    color: var(--primary);
    transition: all var(--transition-fast);
}

.chat-send-btn:hover {
    color: var(--primary-dark);
}

.chat-send-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.chat-send-btn.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Location */
.location-section {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.location-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.location-btn:hover {
    background: var(--primary-dark);
}

.location-or {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.location-section input {
    flex: 1;
    min-width: 120px;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
}

.location-section input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========================================
   Filters Section
   ======================================== */
.filters-section {
    padding: var(--space-md);
    border-top: 1px solid var(--border-light);
    overflow-y: auto;
}

.filters-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.filter-group {
    margin-bottom: var(--space-lg);
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.chip {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Slider */
.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

/* ========================================
   Map Container
   ======================================== */
.map-container {
    flex: 1;
    position: relative;
    background: var(--bg-main);
}

#map {
    width: 100%;
    height: 100%;
}

/* Leaflet overrides */
.leaflet-control-zoom {
    display: none;
}

.leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255,255,255,0.8) !important;
}

/* Custom markers */
.marker-cluster {
    background: rgba(45, 90, 39, 0.2);
}

.marker-cluster div {
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.marker-cluster-small {
    background: rgba(45, 90, 39, 0.3);
}

.marker-cluster-medium {
    background: rgba(45, 90, 39, 0.4);
}

.marker-cluster-large {
    background: rgba(45, 90, 39, 0.5);
}

/* Custom marker icons */
.custom-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: var(--shadow-md);
}

.custom-marker span {
    transform: rotate(45deg);
    font-size: 16px;
}

.custom-marker.repair { background: #3b82f6; }
.custom-marker.donate { background: #f59e0b; }
.custom-marker.recycle { background: #10b981; }
.custom-marker.buy { background: #8b5cf6; }

/* Map Controls */
.map-controls {
    position: absolute;
    right: var(--space-md);
    top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    z-index: var(--z-controls);
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.map-control-btn:hover {
    background: var(--primary);
    color: white;
}

/* Results Counter */
.results-counter {
    position: absolute;
    left: var(--space-md);
    bottom: var(--space-md);
    background: var(--bg-card);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: var(--z-controls);
}

#results-count {
    color: var(--primary);
    font-weight: 700;
}

/* Mobile Assistant Button */
.mobile-assistant-btn {
    position: absolute;
    left: var(--space-md);
    top: var(--space-md);
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-controls);
    transition: all var(--transition-fast);
}

.mobile-assistant-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ========================================
   Details Panel
   ======================================== */
.details-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: var(--bg-panel);
    z-index: var(--z-details);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
}

.details-panel.open {
    transform: translateX(0);
}

.details-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all var(--transition-fast);
}

.details-close:hover {
    background: var(--error);
    color: white;
}

.details-content {
    padding: var(--space-xl);
}

/* Actor Card */
.actor-card {
    /* Header */
}

.actor-header {
    margin-bottom: var(--space-lg);
}

.actor-type-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.actor-type-badge.repair { background: #3b82f6; }
.actor-type-badge.donate { background: #f59e0b; }
.actor-type-badge.recycle { background: #10b981; }
.actor-type-badge.buy { background: #8b5cf6; }

.actor-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.actor-distance {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.actor-distance strong {
    color: var(--primary);
}

/* Actor Info */
.actor-info {
    margin-bottom: var(--space-lg);
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-icon {
    flex-shrink: 0;
    width: 24px;
    color: var(--text-muted);
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.info-value {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.info-value a {
    color: var(--primary);
    word-break: break-all;
}

/* Object Tags */
.object-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.object-tag {
    padding: 2px var(--space-sm);
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Actions */
.actor-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.action-btn.primary {
    background: var(--primary);
    color: white;
}

.action-btn.primary:hover {
    background: var(--primary-dark);
}

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

.action-btn.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Source Attribution */
.source-attribution {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* ========================================
   Results List (Mobile)
   ======================================== */
.results-list-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-panel);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-xl);
    transform: translateY(calc(100% - 60px));
    transition: transform var(--transition-base);
    z-index: var(--z-panel);
    max-height: 60%;
}

.results-list-container.expanded {
    transform: translateY(0);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
}

.results-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.results-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.toggle-view {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.results-list {
    overflow-y: auto;
    max-height: calc(60vh - 60px);
    padding: var(--space-sm);
}

/* Result Item */
.result-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-light);
}

.result-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.result-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-type {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.result-distance {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    padding: var(--space-sm) var(--space-md);
    flex-shrink: 0;
}

.footer-content {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.data-source {
    margin-bottom: 2px;
}

.disclaimer {
    font-style: italic;
}

/* ========================================
   Loading Overlay
   ======================================== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.loading-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.loader {
    text-align: center;
}

.loader-icon {
    font-size: 3rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.loader p {
    margin-top: var(--space-md);
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   Toast Notifications
   ======================================== */
.toast-container {
    position: fixed;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    padding: var(--space-md) var(--space-lg);
    background: var(--text-primary);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    font-size: 0.9rem;
}

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

.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast.warning { background: var(--warning); color: var(--text-primary); }

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-state h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    font-size: 0.9rem;
}

/* ========================================
   Media Queries
   ======================================== */

/* Tablet and up */
@media (min-width: 768px) {
    .header {
        padding: var(--space-md) var(--space-lg);
    }

    .tagline {
        display: block;
    }

    .assistant-panel {
        position: relative;
        transform: none;
        flex-shrink: 0;
        box-shadow: var(--shadow-md);
    }

    .panel-toggle {
        display: none;
    }

    .mobile-assistant-btn {
        display: none;
    }

    .results-list-container {
        display: none;
    }

    .map-controls {
        right: var(--space-lg);
        top: var(--space-lg);
    }

    .results-counter {
        left: var(--space-lg);
        bottom: var(--space-lg);
    }

    .details-panel {
        max-width: 420px;
    }

    .footer {
        padding: var(--space-md) var(--space-lg);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .assistant-panel {
        max-width: 400px;
    }

    .details-panel {
        max-width: 450px;
    }

    .header-content {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Large screens */
@media (min-width: 1440px) {
    :root {
        --space-md: 20px;
        --space-lg: 28px;
        --space-xl: 40px;
    }

    .assistant-panel {
        max-width: 420px;
    }
}

/* Mobile landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: var(--space-sm) var(--space-md);
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .results-list-container {
        max-height: 50%;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (optional, for future) */
@media (prefers-color-scheme: dark) {
    /* Can be enabled later */
}
