:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-navbar: #ffffff;
    --bg-mega: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --accent: #10b981;
    --accent-hover: #059669;
    --danger: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.2s ease-in-out;
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-navbar: #1e293b;
    --bg-mega: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 25px -5px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Primary Top Navbar */
.navbar {
    position: relative;
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--border-color);
    z-index: 1100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    color: var(--text-primary);
}

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

/* True Leaf Market Style Top Mega-Menu Bar */
.mega-menu-bar {
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.mega-menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
}

.mega-menu-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
    height: 100%;
}

.mega-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.mega-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}

.mega-link:hover:not(.disabled) {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
}

.mega-link.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.chevron {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.mega-item:hover .chevron {
    transform: rotate(180deg);
}

/* Expanding Mega Dropdown Panels */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--bg-mega);
    border: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
    z-index: 1200;
}

.mega-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-dropdown-inner {
    padding: 1rem 1.25rem;
}

.col-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

.mega-sub-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.subcat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.65rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
}

.subcat-item:hover:not(.disabled) {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.subcat-item.active {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary);
    font-weight: 700;
}

.subcat-item.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.item-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.mega-menu-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.active-filter-badge {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.btn-reset-pill {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset-pill:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Map Viewport */
.map-page-body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.map-layout {
    flex: 1;
    display: flex;
    position: relative;
}

.interactive-map-container {
    flex: 1;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Custom Leaflet Popups & Map Actions */
.map-popup {
    padding: 0.2rem 0.1rem;
    max-width: 280px;
}

.map-popup h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: #0f172a;
    line-height: 1.3;
}

.map-popup .popup-badge {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.map-popup .popup-desc {
    font-size: 0.86rem;
    color: #475569;
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.btn-popup-website {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: #10b981;
    color: #ffffff;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: var(--transition);
}

.btn-popup-website:hover {
    background: #059669;
}

.btn-popup-add-road {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-popup-add-road:hover {
    background: #1d4ed8;
}

.btn-popup-add-road.saved {
    background: #e2e8f0;
    color: #475569;
}

/* Market Roads Dashboard Layout */
.control-main {
    padding: 2.5rem 0 4rem;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.control-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 0.2rem;
}

.header-stats-badge {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Dashboard Filter Bar */
.dashboard-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--bg-card);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.search-box {
    position: relative;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.85rem 0.5rem 2.2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Market Roads Card Grid */
.market-roads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.road-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.road-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.road-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.road-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.road-card-badge {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    white-space: nowrap;
}

.road-card-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.road-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-order-direct {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    transition: var(--transition);
    text-align: center;
}

.btn-order-direct:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.road-card-subactions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.btn-view-map {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-view-map:hover {
    background: rgba(37, 99, 235, 0.08);
}

.btn-remove-road {
    background: transparent;
    border: none;
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-remove-road:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Empty Collection Banner */
.empty-roads-card {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 3.5rem 2rem;
    text-align: center;
    max-width: 650px;
    margin: 2rem auto;
}

.empty-roads-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.empty-roads-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.empty-roads-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-explore-map {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-explore-map:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* Buttons & Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--text-primary);
    color: var(--bg-main);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

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

.footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Customer Auth & Shipping Estimation Component Styles
   ========================================================================== */

/* Navbar Auth Widget */
.nav-auth-widget {
    display: inline-flex;
    align-items: center;
}

.btn-auth-signin {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}

.btn-auth-signin:hover {
    background: var(--border-color);
    border-color: var(--primary);
    color: var(--primary);
}

/* User Avatar & Dropdown */
.user-dropdown-wrapper {
    position: relative;
}

.user-avatar-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.user-avatar-btn:hover {
    background: var(--primary-hover);
}

.user-avatar-circle {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.dropdown-caret {
    font-size: 0.7rem;
    opacity: 0.8;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 260px;
    z-index: 1200;
    padding: 0.5rem 0;
    animation: fadeIn 0.15s ease-out;
}

.dropdown-user-header {
    padding: 0.75rem 1rem;
}

.user-full-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.user-email-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.user-location-pill {
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.4rem 0;
}

.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.6rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
}

.dropdown-item.logout-btn {
    color: var(--danger);
}

.dropdown-item.logout-btn:hover {
    background: rgba(239, 68, 68, 0.08);
}

.badge-count {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
}

/* Auth Modal Overlay */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    position: relative;
    padding: 1.75rem;
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

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

.auth-modal-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
}

.auth-tab-btn {
    background: transparent;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: var(--transition);
}

.auth-tab-btn.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.auth-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.demo-quick-bar {
    background: var(--bg-main);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 0.6rem 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
}

.demo-tag {
    font-weight: 600;
    color: var(--text-secondary);
    width: 100%;
}

.demo-pill-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.demo-pill-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.auth-form-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-row {
    display: flex;
    gap: 0.75rem;
}

.col-half { flex: 1; }
.col-quarter { flex: 0.5; }

.auth-error-msg {
    color: var(--danger);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.auth-success-msg {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.btn-auth-submit {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.7rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.btn-auth-submit:hover {
    background: var(--primary-hover);
}

/* Shipping Estimate Badges on Map Popups & Cards */
.popup-shipping-box {
    margin-top: 0.6rem;
    padding: 0.5rem 0.6rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--accent-hover);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.popup-shipping-box.no-address {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
    color: var(--primary);
    cursor: pointer;
}

.card-shipping-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 14px;
    margin-top: 0.4rem;
}

[data-theme="dark"] .card-shipping-pill {
    color: #34d399;
    background: rgba(16, 185, 129, 0.18);
}

.card-shipping-pill.no-address {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.3);
    cursor: pointer;
}

/* Home Pin Marker Styling */
.home-marker-pin {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 3px solid #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.home-marker-pin:hover {
    transform: scale(1.15);
}

.home-pulse-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid #2563eb;
    border-radius: 50%;
    animation: homePulse 2s infinite;
    pointer-events: none;
}

@keyframes homePulse {
    0% { transform: scale(0.95); opacity: 0.9; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Path Arch Lines */
.road-path-arch {
    stroke: #2563eb;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 8, 6;
    animation: archFlow 30s linear infinite;
    filter: drop-shadow(0px 2px 4px rgba(37, 99, 235, 0.3));
    transition: stroke-width 0.2s ease, stroke 0.2s ease;
}

.road-path-arch:hover {
    stroke: #10b981;
    stroke-width: 5;
    cursor: pointer;
}

@keyframes archFlow {
    from { stroke-dashoffset: 200; }
    to { stroke-dashoffset: 0; }
}

/* My Saved Roads Action Pill */
.btn-my-roads-pill {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.3);
    font-weight: 600;
}

.btn-my-roads-pill.active,
.btn-my-roads-pill:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Custom Product Emoji Farm Marker Pins */
.custom-farm-icon-wrapper {
    background: transparent;
    border: none;
}

.farm-marker-pin {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.farm-marker-pin:hover {
    transform: scale(1.25);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.4);
    border-color: #10b981;
}

.farm-marker-pin.saved {
    border-color: #10b981;
    background: #ecfdf5;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .farm-marker-pin.saved {
    background: #064e3b;
    border-color: #34d399;
}

.farm-marker-emoji {
    font-size: 1.35rem;
    line-height: 1;
}

/* ==========================================
   Mobile Responsive Media Queries & Touch UI
   ========================================== */

/* Hamburger Button Base (Desktop Hidden) */
.hamburger-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    padding: 0;
    z-index: 1201;
}

.hamburger-toggle .bar {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-toggle.open .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.hamburger-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-toggle.open .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Tablet & Mobile Breakpoint (<= 768px) */
@media (max-width: 768px) {
    .hamburger-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-navbar);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem;
        gap: 0.75rem;
        box-shadow: var(--shadow-lg);
        z-index: 1200;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        width: 100%;
        text-align: left;
    }

    /* Mega Menu Bar Mobile Scrolling */
    .mega-menu-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .mega-menu-list {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        gap: 0.4rem;
        scrollbar-width: thin;
    }

    .mega-item {
        flex: 0 0 auto;
    }

    .mega-link {
        padding: 0.4rem 0.65rem;
        font-size: 0.85rem;
    }

    /* Mega Dropdowns on Mobile */
    .mega-dropdown {
        position: fixed;
        top: 110px;
        left: 4vw;
        right: 4vw;
        width: 92vw;
        max-height: 60vh;
        overflow-y: auto;
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        padding: 1rem;
        z-index: 1300;
    }

    .mega-menu-actions {
        width: 100%;
        justify-content: space-between;
        gap: 0.4rem;
    }

    .active-filter-badge {
        font-size: 0.78rem;
        padding: 0.3rem 0.5rem;
        max-width: 55vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .btn-reset-pill {
        padding: 0.35rem 0.65rem;
        font-size: 0.78rem;
    }

    /* Map Layout on Mobile */
    .map-layout {
        height: calc(100vh - 120px);
        min-height: 420px;
    }

    /* Map Popups & Action Buttons */
    .leaflet-popup-content-wrapper {
        max-width: 88vw !important;
        border-radius: 12px;
    }

    .leaflet-popup-content {
        margin: 12px 14px;
        max-width: 100% !important;
    }

    .map-popup h3 {
        font-size: 1rem;
    }

    .btn-popup-website, .btn-popup-add-road {
        padding: 0.65rem;
        font-size: 0.85rem;
        min-height: 44px; /* Minimum touch target */
    }

    /* Dashboard & Filter Bar on Mobile */
    .control-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .dashboard-filter-bar {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .filter-tabs {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .search-box {
        min-width: 100%;
    }

    .market-roads-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Smartphone Breakpoint (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .auth-modal-card {
        max-width: 94vw;
        padding: 1.25rem 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .road-card {
        padding: 1.15rem;
    }

    .toast-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
        font-size: 0.85rem;
    }
}
