/* --- AUDI/PORSCHE INSPIRED TECH CAR PARTS FEED --- */
.parts-feed-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

/* Diagnostic Scanner / Garage Companion Card */
.garage-scanner-card {
    background: linear-gradient(135deg, #1c1c1e 0%, #111112 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    color: #ffffff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.garage-scanner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #007AFF; /* High-performance diagnostic blue */
}

.scanner-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scanner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

/* High-Precision Component Cards */
.part-tech-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.05));
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

.part-tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

/* Neon Fitment Indicators */
.fitment-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}

.fitment-badge.verified {
    background: rgba(52, 199, 89, 0.1);
    color: #34C759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.fitment-badge.unverified {
    background: rgba(255, 149, 0, 0.1);
    color: #FF9500;
    border: 1px solid rgba(255, 149, 0, 0.2);
}
/**
 * @fileoverview Reusable UI Components (Cards, Buttons, Navigation Items)
 */

/* Feed Zones */
.market-zone { 
    padding: 16px; 
    animation: fadeIn 0.3s ease; 
}

@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

.loading-text { 
    text-align: center; 
    color: var(--text-muted); 
    margin-top: 40px; 
}

/* Brand Logo Component */
.market-brand-logo {
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--text-main);
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    user-select: none;
    text-decoration: none;
}
.market-brand-logo .logo-dot {
    color: var(--accent-color, #007AFF);
}
.market-brand-logo.logo-size-sm { font-size: 1.1rem; letter-spacing: -0.5px; }
.market-brand-logo.logo-size-md { font-size: 1.5rem; letter-spacing: -1px; }
.market-brand-logo.logo-size-lg { font-size: 2.2rem; letter-spacing: -1.5px; }
.market-brand-logo.logo-size-hero { font-size: 2.8rem; letter-spacing: -2px; }
.market-brand-logo.animated-logo .logo-dot {
    display: inline-block;
    animation: logoDotPulse 2s ease-in-out infinite;
}
@keyframes logoDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.8; }
}

.header-logo { 
    font-size: 1.4rem; 
    font-weight: 800; 
    letter-spacing: -0.5px; 
    text-align: center;
    flex: 1;
}

h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.4; }

/* Buttons */
.btn { 
    padding: 14px; 
    border: none; 
    border-radius: 14px; 
    font-size: 1rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.2s; 
}

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

.btn.primary:active { 
    transform: scale(0.98); 
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    width: 44px;
}

.icon-btn:active { background: rgba(0,0,0,0.05); }

/* Material 3 Product Cards */
.card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.card-img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
    border-radius: 12px; 
    margin-bottom: 12px; 
}

/* Bottom Navigation Items */
.nav-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
    flex: 1;
}

.nav-item.active { color: var(--accent-color); }
.nav-icon { font-size: 1.6rem; margin-bottom: 4px; transition: transform 0.2s; }
.nav-item.active .nav-icon { transform: scale(1.1); }
.nav-label { font-size: 0.7rem; font-weight: 600; }

/* Sidebar Components */
.avatar-large { 
    font-size: 2.5rem; 
    background: var(--bg-color); 
    width: 60px; 
    height: 60px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
}

.user-info h3 { font-size: 1.1rem; margin-bottom: 2px; }
.user-info p { font-size: 0.85rem; color: var(--text-muted); }

/* ── Premium Sidebar: Profile Section ──────────────────────────── */
.sidebar-profile-section {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.sidebar-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color, #007AFF) 0%, color-mix(in srgb, var(--accent-color, #007AFF) 60%, #5856D6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--accent-color, #007AFF) 30%, transparent);
    letter-spacing: -1px;
}

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

.sidebar-profile-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
}

.sidebar-profile-email {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* ── Premium Sidebar: Wallet Card ──────────────────────────────── */
.sidebar-wallet-card {
    margin: 4px 16px 12px 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--accent-color, #007AFF) 12%, var(--card-bg)) 0%, 
        var(--card-bg) 100%);
    border: 1px solid color-mix(in srgb, var(--accent-color, #007AFF) 20%, var(--border));
    border-radius: 14px;
}

.sidebar-wallet-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.sidebar-wallet-balance {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -1px;
    line-height: 1;
}

/* ── Premium Sidebar: Nav Items ───────────────────────────────── */
.sidebar-item {
    width: 100%;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    margin: 0 8px;
    width: calc(100% - 16px);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.sidebar-item:hover {
    background: var(--bg-color);
    transform: translateX(3px);
}

.sidebar-item:active {
    background: color-mix(in srgb, var(--accent-color, #007AFF) 10%, var(--bg-color));
    transform: translateX(1px);
}

.sidebar-item i {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: color 0.15s ease;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-item:hover i { color: var(--accent-color); }

.logout-link { color: #FF3B30; margin-top: auto; }
.sidebar-item.logout-link i { color: #FF3B30; }


/* Premium Bento Box Design System */
.bento-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.bento-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.bento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.05);
}

.parallax-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 200px; /* Adjust based on card design */
    border-radius: 16px;
    margin-bottom: 12px;
}

.parallax-image {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
    object-fit: cover;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Floating Action Button (FAB) */
.floating-scan-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    background: #007AFF; /* Apple Blue */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.floating-scan-btn:active {
    transform: scale(0.92);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* The container holding the image */
.scanner-preview-wrapper {
    position: relative;
    width: 100%;
    max-height: 350px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none; /* Hidden until an image is uploaded */
    background: #000;
}

/* The actual uploaded image */
.scanner-preview-img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    opacity: 0.7; /* Slightly dim so the laser pops */
    display: block;
}

/* The sweeping laser line */
.scanner-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #007AFF; /* Apple Blue */
    box-shadow: 0 0 20px 8px rgba(0, 122, 255, 0.6);
    animation: scan-laser 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
    z-index: 2;
}

@keyframes scan-laser {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* The Matrix-style data stream text */
.scanner-data-stream {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #0bd64a; /* Tech Green */
    padding: 6px 16px;
    border-radius: 20px;
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    z-index: 3;
    white-space: nowrap;
}

/* Smooth slide-up fade animation */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up-fade {
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Horizontal Pill Navigation */
.market-nav-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 16px 16px 16px;
    scrollbar-width: none; /* Firefox */

/* Admin Product Catalog responsive helpers */
.catalog-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}
.catalog-card img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.catalog-card .meta {
    flex: 1;
    min-width: 0;
}
.catalog-card .meta .title {
    font-weight: 800;
    font-size: 1rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.catalog-card .meta .sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.catalog-card .actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.btn.action-btn {
    padding: 8px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Make tables wrap and avoid forcing horizontal scroll on narrow screens */
.bento-card table { width: 100%; min-width: 0; table-layout: auto; }
@media (max-width: 720px) {
    /* .bento-card table { display: none; } */ /* This was hiding tables on mobile; responsive logic in JS will handle it now. */
}

/* Store chip matrix styles (used by FeedRenderer and CarPartsFeed) */
.store-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.store-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.store-chip.active,
.store-chip:active {
    background: var(--bg-input);
    color: var(--text-main);
    border-color: var(--accent-color);
}

.store-chip.clear {
    background: transparent;
    border-style: dashed;
    color: var(--text-muted);
    font-weight: 800;
}

.store-chip:focus {
    outline: 3px solid rgba(0, 122, 255, 0.12);
    outline-offset: 2px;
}
    margin-bottom: 10px;
}
.market-nav-scroll::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}
.nav-pill {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}
.nav-pill.active {
    background: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Storefront Card */
.store-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-card:active {
    transform: scale(0.98);
}
.store-logo-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-main);
}
.store-info h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 800;
}
.store-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Chain group expand/collapse (improved for ellipsis and max height) */
.chain-group-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    align-items: flex-start; /* ensure child pills don't stretch */
}

/* 1. Ensure the Pill is the constant anchor */
.chain-pill {
    padding: 20px; /* Increased padding for prominence */
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px; /* Larger radius for modern feel */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800; /* Bolder for prominence */
    width: 100%;
    max-width: 500px; /* Wider to show full store names */
    margin: 0 auto 12px auto;
    box-sizing: border-box;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.chain-pill.active-chain {
    border-color: var(--accent-color);
    background: rgba(0, 122, 255, 0.05);
}

/* --- HOUSING COMPANION SEARCH & FILTER FIXES --- */
.housing-companion-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.05));
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
}

.companion-greeting {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main, #1c1c1e);
    margin: 0 0 4px 0;
}

.companion-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted, #8e8e93);
    margin: 0 0 16px 0;
}

/* Fixes the white-on-white option text selection bug */
.housing-select-wrapper {
    position: relative;
    width: 100%;
}

.housing-select-wrapper select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid var(--border, #e6e6e6);
    background: var(--bg-input, #fafafa);
    color: var(--text-main, #1c1c1e);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Explicitly style option tags to ensure visibility across system light/dark modes */
.housing-select-wrapper select option {
    background-color: var(--bg-card, #ffffff) !important;
    color: var(--text-main, #1c1c1e) !important;
}

/* --- STATE-OF-THE-ART DETAILED CONTAINER --- */
.housing-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.housing-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.housing-detail-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 650px;
    height: 100vh;
    background: var(--bg-card, #ffffff);
    z-index: 2001;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    
    /* Hardware-accelerated sliding mechanics */
    transform: translateX(100%);
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.housing-detail-panel.active {
    transform: translateX(0);
}

.panel-close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.panel-close-btn:active {
    transform: scale(0.9);
}

.chain-pill .chain-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: calc(100% - 48px); /* leave room for chevron */
}

/* 2. Make the branch list prominent and clear */
.branch-list {
    display: none; /* Default hidden */
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px auto;
    background: var(--bg-color);
    border: 2px solid var(--text-main); /* Stronger border to show it's "active" */
    border-radius: 0 0 16px 16px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-height: 420px; /* Cap height to allow scrolling for 20+ branches */
    overflow-y: auto; /* Enable scrolling for many branches */
    flex-direction: column;
    gap: 0;
}

.branch-list.expanded {
    display: flex; /* Force show */
    animation: slideDown 0.3s ease-out forwards;
}

/* 3. Add an animation to make it feel smooth */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Chevron rotation for accessible toggles */
.chain-chev {
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: center;
    display: inline-block;
}
.chain-chev.rotated {
    transform: rotate(180deg);
}

/* 4. Style individual branches to be huge and tappable */
.branch-item {
    padding: 18px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.branch-item:last-child { border-bottom: none; }
.branch-item:hover { background: var(--bg-card); }

/* Small branch card for list items */
.branch-card {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
}

/* Ensure cards don't shrink and are easy to see */
.store-ribbon-card {
    flex: 0 0 calc(50% - 6px); /* Optional: Forces 2 per row */
    box-sizing: border-box;
}

/* --- ORDER TRACKING TIMELINE --- */

/* Mobile: switch back to below layout for smaller screens */
@media (max-width: 720px) {
    .branch-list {
        position: static;
        width: 100%;
        left: 0;
        margin-top: 8px;
        box-shadow: none;
        padding: 0;
    }

    .chain-pill { max-width: none; }
}

/* ========== SLIDING ORDER DRAWER ========== */

/* The background overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* The sliding drawer */
.order-drawer {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden off-screen */
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-color, #ffffff) !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Active states */
.drawer-overlay.active { opacity: 1; visibility: visible; }
.order-drawer.active { right: 0; }
.tracking-container {
    display: flex;
    flex-direction: column;

    .order-drawer {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 400px;
        height: 100%;
        background: var(--bg-color, #ffffff) !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
        z-index: 1000;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        scrollbar-width: thin;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: transform;
    }

    /* Active states */
    .drawer-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .order-drawer.active {
        transform: translateX(0);
    }
    gap: 16px;
    position: relative;
    z-index: 2;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.track-step.completed {
    opacity: 1;
}

.track-step.active {
    opacity: 1;
}

.track-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.track-step.completed .track-icon {
    background: #34C759;
    border-color: #34C759;
    color: white;
}

.track-step.active .track-icon {
    border-color: var(--text-main);
    color: var(--text-main);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

.track-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.track-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- PREMIUM PRODUCT DETAIL VIEW --- */
.product-detail-sheet {
    background: var(--bg-color);
    height: 90vh; /* Takes up most of the screen like a native iOS sheet */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.product-detail-hero {
    width: 100%;
    height: 35vh;
    position: relative;
    background: var(--card-bg);
}

.product-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-hero .close-btn-float {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
}

.product-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px 100px 20px; /* Extra bottom padding for the sticky bar */
    background: var(--bg-color);
    border-radius: 24px 24px 0 0;
    margin-top: -24px; /* Pulls the body up over the image */
    position: relative;
    z-index: 5;
}

.trust-banner {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: #248A3D;
    padding: 10px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 16px 0;
}

/* Sticky Action Bar */
.sticky-action-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.85); /* Adjust for dark mode if needed via var(--bg-card) */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}
/* --- RATING STARS --- */
.rating-star {
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
}
.rating-stars:hover .rating-star {
    transform: scale(1.1);
}

.qty-control {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.qty-control button {
    background: none;
    border: none;
    padding: 10px 14px;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
}

.qty-control span {
    font-weight: 800;
    width: 30px;
    text-align: center;
}

/* =========================================================
   IN-STORE SHOPPER FULFILLMENT UI
   ========================================================= */

.shopper-checklist-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 24px; /* adjusted for static footer */
}

/* The Progress Header */
.shopper-progress-header {
    background: var(--saas-canvas-bg);
    border: 1px solid var(--saas-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: sticky;
    top: 20px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--saas-border);
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #34C759; /* Success Green */
    width: 0%;
    transition: width 0.3s ease;
}

/* The Task Item Row */
.shopper-task-row {
    background: var(--saas-canvas-bg);
    border: 1px solid var(--saas-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.shopper-task-row.completed {
    opacity: 0.6;
    background: var(--saas-hover);
    border-style: dashed;
}

.task-details h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--saas-text);
}

.task-details p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--saas-muted);
}

/* Massive Touch Buttons */
.task-actions {
    display: flex;
    gap: 10px;
}

.btn-action-large {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
}

.btn-action-large:active {
    transform: scale(0.9);
}

.btn-missing {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
}

.btn-found {
    background: rgba(52, 199, 89, 0.1);
    color: #34C759;
}

/* Resolved States */
.shopper-task-row.status-found .btn-found {
    background: #34C759;
    color: white;
}
.shopper-task-row.status-found .btn-missing {
    display: none;
}

.shopper-task-row.status-out_of_stock .btn-missing {
    background: #FF3B30;
    color: white;
}
.shopper-task-row.status-out_of_stock .btn-found {
    display: none;
}

/* =========================================================
   MARKET FILTER ENGINE
   ========================================================= */

.market-filter-bar {
    background: var(--saas-canvas-bg, #ffffff);
    border: 1px solid var(--saas-border, #E5E7EB);
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-header-toggle {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 800;
    color: var(--saas-text, #111827);
    background: var(--saas-sidebar-bg, #F9FAFB);
    user-select: none;
}

.filter-body-content {
    padding: 0 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The magic that opens the drawer */
.market-filter-bar.open .filter-body-content {
    padding: 20px;
    max-height: 800px;
    opacity: 1;
    border-top: 1px solid var(--saas-border, #E5E7EB);
    overflow: visible;
}

.filter-pill {
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--saas-hover, #F3F4F6);
    color: var(--saas-muted, #6B7280);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-pill.active {
    background: var(--saas-active, #000000);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-pill:hover:not(.active) {
    border-color: var(--saas-border, #E5E7EB);
    color: var(--saas-text, #111827);
}

/* Horizontal scrolling for long lists of stores/categories */
.filter-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-row::-webkit-scrollbar {
    height: 6px;
}
.filter-row::-webkit-scrollbar-thumb {
    background: var(--saas-border, #E5E7EB);
    border-radius: 6px;
}
/* --- PREMIUM PROFILE HEADER --- */

/* 1. The Main Card Container */
.profile-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xxl) var(--space-lg); /* Generous breathing room */
    background: var(--bg-card, #ffffff);
    border-radius: var(--space-lg); /* iOS-style continuous curve (squircle) */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04); /* Ultra-soft depth */
    box-sizing: border-box;
    gap: var(--space-md);
    width: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}

/* ========== USER PROFILE LAYOUT & UTILITIES ========== */
/* Page wrapper: keeps content centered and away from screen edges */
.user-profile-page {
    padding: var(--space-lg); /* outer breathing room */
    max-width: 1100px; /* readable measure */
    margin: 0 auto; /* center on wide screens */
    box-sizing: border-box;
    width: 100%;
}

/* Main layout: content + optional sidebar */
.user-profile-layout {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    justify-content: center;
}

.profile-main {
    flex: 1 1 640px;
    min-width: 0; /* allow proper flex shrinking */
}

.profile-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Ensure avatar and any images are centered and constrained */
.profile-avatar-container {
    margin: 0 auto var(--space-sm) auto; /* keep avatar centered */
    display: block;
}
.profile-avatar-image,
.profile-card-header img,
.profile-main img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Card-like content areas inside the profile page */
.profile-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--space-md);
    padding: var(--space-md);
    box-shadow: 0 8px 28px rgba(0,0,0,0.04);
}

.profile-info {
    text-align: center;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-md);
}

.profile-meta {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-xs);
}

.profile-stats {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    justify-content: center;
    margin-top: var(--space-sm);
}
.profile-stats .stat { 
    text-align: center; 
    font-size: var(--font-size-sm);
}

.profile-detail-row {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--font-size-md);
}
.profile-detail-row:last-child { border-bottom: none; }

.profile-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: var(--space-md);
}

/* Make sure forms / lists inside profile have comfortable spacing */
.profile-content form,
.profile-content .list {
    margin-top: var(--space-xs);
}

/* Responsive: stack columns on narrow screens */
@media (max-width: 820px) {
    .user-profile-page { padding: var(--space-md); } /* Reduce padding on tablets */
    .user-profile-layout { flex-direction: column; gap: var(--space-lg); }
    .profile-sidebar { width: 100%; }
    .profile-stats { justify-content: space-around; }
}

/* Responsive: further adjustments for mobile phones */
@media (max-width: 480px) {
    .user-profile-page { padding: var(--space-sm); } /* Minimal padding on small phones */

    .profile-card-header {
        padding: var(--space-lg) var(--space-md); /* Reduce horizontal padding */
    }

    .profile-stats, .profile-actions {
        flex-direction: column; /* Stack stats and action buttons vertically */
        gap: var(--space-md);
        align-items: stretch; /* Make items full-width */
    }

    .profile-detail-row {
        flex-direction: column; /* Stack detail rows for more space */
        align-items: flex-start;
        gap: var(--space-xxs);
    }
}

/* 2. The Avatar Lock */
.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar-container {
    position: relative;
    width: 110px; /* THE FIX: Strict width prevents stretching */
    height: 110px; /* THE FIX: Strict height */
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    background: #007AFF; /* Apple Blue Fallback */
    box-shadow: 0 10px 24px rgba(0, 122, 255, 0.25); /* Glow effect */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* iOS bouncy tap effect */
.profile-avatar-container:active {
    transform: scale(0.92); 
}

/* 3. Avatar Layers */
.profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.profile-avatar-fallback {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    z-index: 1;
}

/* 4. Frosted Glass Hover Overlay */
.profile-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px); /* iOS frosted glass */
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ffffff;
    font-size: 2rem;
    z-index: 3;
}

.profile-avatar-container:hover .profile-avatar-overlay {
    opacity: 1;
}

/* --- HOUSING BEN-TO BOX GALLERY --- */
.housing-detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
}

.housing-bento-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    border-radius: 24px;
    overflow: hidden;
    height: 340px;
    width: 100%;
}

.gallery-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--bg-card);
}

.gallery-side-stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 100%;
}

.gallery-side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--bg-card);
}

/* Fluid responsive collapse */
@media (max-width: 500px) {
    .housing-bento-gallery {
        grid-template-columns: 1fr;
        height: 220px;
    }
    .gallery-side-stack {
        display: none;
    }
}

/* --- STATE-OF-THE-ART DETAILED OVERLAY LAYERS --- */
.parts-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.parts-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.parts-detail-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 620px;
    height: 100vh;
    background: var(--bg-card, #ffffff);
    z-index: 2501;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.parts-detail-panel.active {
    transform: translateX(0);
}

.care-guide-box {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.04) 0%, rgba(0, 122, 255, 0.01) 100%);
    border: 1px solid rgba(0, 122, 255, 0.1);
    border-radius: 16px;
    padding: 18px;
    margin-top: 12px;
}

/* Premium: Category pill styles and search input focus ring */
.category-pill{
    display:inline-flex;
    align-items:center;
    gap:0.5rem;
    padding:0.25rem 0.6rem;
    background:var(--bg-input, #f4f4f5);
    color:var(--text-muted, #111827);
    font-weight:700;
    font-size:0.88rem;
    border-radius:24px;
    transition:all 0.2s ease;
    cursor:pointer;
    user-select:none;
}

.category-pill svg,
.category-pill .icon{
    width:1rem;
    height:1rem;
    flex-shrink:0;
    opacity:0.95;
    transition:transform 0.18s ease, opacity 0.18s ease;
}

.category-pill:hover{ transform:translateY(-1px); }

.category-pill.active{
    background:var(--text-main);
    color:var(--bg-color);
    box-shadow:0 6px 18px rgba(16,24,40,0.06), 0 1px 2px rgba(16,24,40,0.04);
}

.category-pill.active svg,
.category-pill.active .icon{
    transform:scale(1.03);
    opacity:1;
}

/* Focus ring for retail search input */
#retail-search-input{
    border-radius:8px;
    transition:box-shadow 0.18s ease, border-color 0.12s ease;
}

#retail-search-input:focus{
    outline: none;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.9);
}

#retail-search-input:focus-visible{
    box-shadow: 0 0 0 4px rgba(59,130,246,0.16);
}

/* --- ADMIN MARKET OPERATIONS CONTROL --- */
.market-ops-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.market-ops-card h3 {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.market-ops-card .toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.market-ops-card .toggle-row:last-child {
    border-bottom: none;
}

.market-ops-card .toggle-label {
    font-weight: 600;
    color: var(--text-main);
}


/* ============================================================
   PREMIUM TOGGLE SWITCH — works with label[display:inline-flex]
   AND with .toggle-switch-container wrapper
   ============================================================ */

/* Case 1: explicit wrapper class (used in some places) */
.toggle-switch-container {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

/* Case 2: plain <label> used as the wrapper in admin market toggles.
   Target any <label> that directly contains a [type=checkbox] + .toggle-slider */
label:has(input[type="checkbox"] + .toggle-slider) {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* Hide the native checkbox in all toggle contexts */
.toggle-switch-container input[type="checkbox"],
label:has(> input[type="checkbox"] + .toggle-slider) input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* The pill track */
.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border, rgba(120,120,128,0.32));
    border-radius: 999px;
    transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.18);
}

/* The pill thumb (knob) */
.toggle-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Checked state: green track, knob slides right */
input[type="checkbox"]:checked + .toggle-slider {
    background: #34C759;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.12), 0 0 0 3px rgba(52, 199, 89, 0.15);
}

input[type="checkbox"]:checked + .toggle-slider::before {
    left: calc(100% - 23px);
}

/* Focus ring for keyboard accessibility */
input[type="checkbox"]:focus-visible + .toggle-slider {
    outline: 3px solid color-mix(in srgb, var(--accent-color, #007AFF) 40%, transparent);
    outline-offset: 2px;
}

/* Hover: slight brightness boost */
.toggle-slider:hover {
    filter: brightness(1.06);
}

/* Google Places Autocomplete Dropdown Override */
.pac-container {
    z-index: 10000 !important;
    font-family: inherit;
    border-radius: 12px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: var(--card-bg, #ffffff);
    margin-top: 4px;
}

.pac-item {
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text-main, #000000);
    border-top: 1px solid var(--border, rgba(0, 0, 0, 0.05));
    cursor: pointer;
}

.pac-item:hover, .pac-item-selected {
    background-color: var(--bg-color, rgba(0, 122, 255, 0.08));
}

.pac-item-query {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main, #000000);
}

.pac-matched {
    color: var(--accent-color, #007AFF);
}