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

        /* Safari flexbox gap fallback */
        @supports not (gap: 1px) {
            .header-left > * + *, .header-right > * + *, .live-indicator > * + *,
            .map-controls > * + *, .incident-grid > * + * {
                margin-left: 8px;
            }
        }

        body {
            font-family: 'Inter', sans-serif;
            background: #0f1524;
            color: #e5e7eb;
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* HEADER */
        .sticky-header {
            position: sticky;
            top: 0;
            z-index: 9999;
            background: #111827;
            border-bottom: 1px solid #1e293b;
            padding: 0 20px;
            height: 56px;
            display: -webkit-flex;
            display: flex;
            -webkit-box-pack: justify;
            -webkit-box-align: center;
            align-items: center;
            justify-content: space-between;
        }

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

        .header-logo {
            height: 32px;
            object-fit: contain;
        }

        .header-title {
            font-family: 'Poppins', sans-serif;
            font-size: 18px;
            font-weight: 600;
            color: #fff;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .live-indicator {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(239, 68, 68, 0.1);
            padding: 6px 12px;
            border-radius: 20px;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        .pulse-dot {
            width: 10px;
            height: 10px;
            background: #ef4444;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .live-text {
            font-size: 12px;
            font-weight: 600;
            color: #ef4444;
            text-transform: uppercase;
        }

        .incident-badge {
            background: #ef4444;
            color: #fff;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 700;
            min-width: 24px;
            text-align: center;
        }

        /* DEMO MODE BANNER */
        .demo-banner {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: #fff;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            animation: slideDown 0.3s ease-out;
            position: relative;
            z-index: 9998;
        }

        @keyframes slideDown {
            from { transform: translateY(-100%); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .demo-banner.hidden {
            display: none;
        }

        .demo-text {
            font-size: 14px;
            font-weight: 500;
        }

        .demo-dismiss {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: #fff;
            padding: 4px 8px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            transition: background 0.2s;
        }

        .demo-dismiss:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        /* LIVE ALERT BANNER */
        .live-alert {
            background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
            color: #fff;
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            animation: slideDown 0.3s ease-out;
            position: relative;
            z-index: 9997;
            margin-bottom: 16px;
        }

        .live-alert.hidden {
            display: none;
        }

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

        .alert-icon {
            font-size: 20px;
        }

        .alert-text {
            font-size: 14px;
            font-weight: 500;
        }

        .alert-location {
            color: #fecaca;
            font-size: 12px;
        }

        .alert-dismiss {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: #fff;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .alert-dismiss:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        /* MAIN CONTAINER */
        .container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 0 16px;
        }

        /* MAP SECTION */
        .map-section {
            position: relative;
            margin-bottom: 32px;
        }

        #map {
            width: 100%;
            height: 65vh;
            min-height: 500px;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #1e293b;
        }

        .map-controls {
            position: absolute;
            top: 16px;
            right: 16px;
            z-index: 400;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .map-toggle {
            background: #111827;
            border: 1px solid #1e293b;
            color: #9ca3af;
            padding: 10px 14px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .map-toggle.active {
            background: #ef4444;
            color: #fff;
            border-color: #dc2626;
        }

        .map-toggle:hover {
            border-color: #374151;
        }

        .map-toggle.active:hover {
            background: #dc2626;
        }

        /* INCIDENT FEED */
        .feed-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            margin-top: 24px;
        }

        .feed-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 20px;
            font-weight: 600;
            color: #fff;
        }

        .feed-meta {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 12px;
            color: #9ca3af;
        }

        .incident-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 16px;
            margin-bottom: 32px;
        }

        .incident-card {
            background: #111827;
            border: 1px solid #1e293b;
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 18px;
            transition: all 0.2s;
            cursor: default;
        }

        .incident-card:hover {
            border-color: #374151;
            background: #1a202c;
        }

        .incident-card-left {
            width: 4px;
            flex-shrink: 0;
        }

        .incident-card-left.accident {
            background: #ef4444;
        }

        .incident-card-left.congestion {
            background: #eab308;
        }

        .incident-card-left.road-closed {
            background: #dc2626;
        }

        .incident-card-left.other {
            background: #f97316;
        }

        .incident-card-content {
            flex: 1;
            padding: 16px;
        }

        .incident-card-header {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 10px;
        }

        .incident-icon {
            font-size: 18px;
            flex-shrink: 0;
        }

        .incident-info {
            flex: 1;
        }

        .incident-title {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            margin-bottom: 4px;
        }

        .incident-road {
            font-size: 12px;
            color: #9ca3af;
            margin-bottom: 6px;
        }

        .incident-location {
            font-size: 11px;
            color: #6b7280;
            margin-bottom: 4px;
        }

        .incident-description {
            color: #cbd5f5;
            font-size: 0.9rem;
            line-height: 1.5;
            margin: 0;
        }

        .incident-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }

        .incident-cta {
            border: 1px solid #d5a037;
            background: transparent;
            color: #d5a037;
            font-weight: 600;
            font-size: 0.85rem;
            padding: 10px 14px;
            border-radius: 999px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            cursor: pointer;
            transition: all 0.2s ease;
            width: 100%;
        }

        .incident-cta:hover {
            background: #d5a037;
            color: #0f172a;
            transform: translateY(-1px);
        }

        .incident-time {
            font-size: 11px;
            color: #6b7280;
        }

        .incident-severity {
            background: rgba(239, 68, 68, 0.1);
            color: #fca5a5;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 500;
        }

        .incident-severity.high {
            background: rgba(239, 68, 68, 0.2);
            color: #fecaca;
        }

        .incident-severity.moderate {
            background: rgba(234, 179, 8, 0.2);
            color: #fef08a;
        }

        .all-clear {
            text-align: center;
            padding: 40px 20px;
            color: #10b981;
            font-size: 16px;
        }

        .view-all-btn {
            background: #1e293b;
            border: 1px solid #374151;
            color: #9ca3af;
            padding: 12px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            margin-top: 16px;
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        .view-all-btn:hover {
            background: #374151;
            color: #d1d5db;
        }

        /* DANGER ZONES */
        .danger-zones-section {
            margin-bottom: 32px;
        }

        .danger-zones-toggle {
            background: #111827;
            border: 1px solid #1e293b;
            color: #9ca3af;
            padding: 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: space-between;
            user-select: none;
        }

        .danger-zones-toggle:hover {
            background: #1a202c;
            border-color: #374151;
        }

        .danger-zones-toggle-text {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .danger-zones-toggle-arrow {
            transition: transform 0.2s;
        }

        .danger-zones-toggle-arrow.expanded {
            transform: rotate(180deg);
        }

        .danger-zones-table {
            display: none;
            margin-top: 16px;
            overflow-x: auto;
        }

        .danger-zones-table.expanded {
            display: block;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            background: #111827;
            border: 1px solid #1e293b;
            border-radius: 8px;
            overflow: hidden;
        }

        thead {
            background: #1a202c;
        }

        th {
            padding: 12px 16px;
            text-align: left;
            font-size: 12px;
            font-weight: 600;
            color: #9ca3af;
            border-bottom: 1px solid #1e293b;
            text-transform: uppercase;
        }

        td {
            padding: 12px 16px;
            border-bottom: 1px solid #1e293b;
            font-size: 13px;
        }

        tbody tr:hover {
            background: #1a202c;
        }

        tbody tr:last-child td {
            border-bottom: none;
        }

        .risk-critical {
            background: rgba(239, 68, 68, 0.2);
            color: #fecaca;
            padding: 4px 8px;
            border-radius: 4px;
            font-weight: 600;
            display: inline-block;
        }

        .risk-high {
            background: rgba(249, 115, 22, 0.2);
            color: #fed7aa;
            padding: 4px 8px;
            border-radius: 4px;
            font-weight: 600;
            display: inline-block;
        }

        .risk-moderate {
            background: rgba(234, 179, 8, 0.2);
            color: #fef08a;
            padding: 4px 8px;
            border-radius: 4px;
            font-weight: 600;
            display: inline-block;
        }

        .risk-pedestrian {
            background: rgba(59, 130, 246, 0.2);
            color: #bfdbfe;
            padding: 4px 8px;
            border-radius: 4px;
            font-weight: 600;
            display: inline-block;
        }

        /* ATTORNEY CTA */
        .attorney-cta {
            background: linear-gradient(135deg, #182138 0%, #2b3963 100%);
            border: 1px solid #1e293b;
            border-radius: 8px;
            padding: 32px;
            margin-bottom: 32px;
            text-align: center;
        }

        .cta-title {
            font-family: 'Poppins', sans-serif;
            font-size: 24px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 12px;
        }

        .cta-subtitle {
            font-size: 14px;
            color: #d1d5db;
            margin-bottom: 20px;
        }

        .cta-buttons {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }

        .cta-btn {
            background: #d5a037;
            color: #fff;
            border: none;
            padding: 12px 24px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .cta-btn:hover {
            background: #c9941f;
            transform: translateY(-2px);
        }

        .cta-disclaimer {
            font-size: 12px;
            color: #9ca3af;
        }

        /* INLINE CONTACT STRIPS */
        .contact-strip {
            background: linear-gradient(90deg, rgba(220,38,38,0.15) 0%, rgba(24,33,56,0.9) 40%, rgba(24,33,56,0.9) 60%, rgba(213,160,55,0.15) 100%);
            border: 1px solid rgba(213,160,55,0.3);
            border-radius: 8px;
            padding: 16px 24px;
            margin: 20px 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
        }
        .contact-strip-text {
            font-size: 15px;
            font-weight: 600;
            color: #fff;
        }
        .contact-strip-text span { color: #d5a037; }
        .contact-strip-btns {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .contact-strip-btn {
            background: #dc2626;
            color: #fff;
            padding: 8px 18px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .contact-strip-btn:hover { background: #b91c1c; transform: translateY(-1px); }
        .contact-strip-btn.gold { background: #d5a037; }
        .contact-strip-btn.gold:hover { background: #c9941f; }

        /* MAP OVERLAY CTA */
        .map-cta-overlay {
            position: absolute;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            background: rgba(24,33,56,0.95);
            -webkit-backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
            border: 1px solid #d5a037;
            border-radius: 10px;
            padding: 12px 16px;
            text-align: center;
            max-width: 200px;
            animation: map-cta-glow 3s ease-in-out infinite;
        }
        @keyframes map-cta-glow {
            0%, 100% { box-shadow: 0 0 10px rgba(213,160,55,0.3); }
            50% { box-shadow: 0 0 20px rgba(213,160,55,0.5); }
        }
        .map-cta-overlay .map-cta-text {
            font-size: 12px;
            color: #d5a037;
            font-weight: 600;
        }

        .popup-lead-actions {
            margin-top: 10px;
            border-top: 1px solid rgba(255,255,255,0.08);
            padding-top: 8px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            text-align: center;
        }

        .popup-lead-btn {
            border: none;
            border-radius: 999px;
            background: #ef4444;
            color: #fff;
            font-weight: 700;
            padding: 10px 16px;
            cursor: pointer;
            transition: background 0.2s, transform 0.2s;
        }

        .popup-lead-btn:hover {
            background: #dc2626;
            transform: translateY(-1px);
        }

        .popup-call-link {
            color: #d5a037;
            font-size: 12px;
            text-decoration: none;
        }

        .popup-call-link:hover {
            text-decoration: underline;
        }

        .map-cta-overlay a {
            display: block;
            background: #dc2626;
            color: #fff;
            padding: 8px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-decoration: none;
            margin-bottom: 4px;
        }
        .map-cta-overlay a:hover { background: #b91c1c; }
        .map-cta-overlay a.text-link {
            background: transparent;
            color: #94a3b8;
            font-size: 11px;
            padding: 4px;
        }

        /* INCIDENT CARD CONTACT LINK */
        .incident-contact {
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid #1e293b;
        }
        .incident-contact a {
            color: #d5a037;
            font-size: 11px;
            font-weight: 600;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .incident-contact a:hover { color: #fbbf24; }

        /* MOBILE STICKY CONTACT BAR */
        .mobile-contact-bar {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #111827;
            border-top: 1px solid #1e293b;
            padding: 12px;
            z-index: 8000;
            gap: 12px;
        }

        .mobile-contact-bar.visible {
            display: flex;
        }

        .mobile-btn {
            flex: 1;
            background: #ef4444;
            color: #fff;
            border: none;
            padding: 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: background 0.2s;
        }

        .mobile-btn:hover {
            background: #dc2626;
        }

        /* CHAT WIDGET */
        .chat-widget {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 7000;
            max-width: calc(100vw - 16px);
        }

        .chat-button {
            width: 56px;
            height: 56px;
            background: #ef4444;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
            transition: all 0.2s;
            position: relative;
        }

        .chat-button:hover {
            background: #dc2626;
            box-shadow: 0 6px 16px rgba(239, 68, 68, 0.6);
            transform: scale(1.05);
        }

        .chat-badge {
            position: absolute;
            top: -2px;
            right: -2px;
            background: #fbbf24;
            color: #111827;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
            border: 2px solid #111827;
        }

        .chat-panel {
            position: absolute;
            bottom: 70px;
            right: 0;
            width: 380px;
            max-width: calc(100vw - 48px);
            background: #111827;
            border: 1px solid #1e293b;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
            display: none;
            flex-direction: column;
            max-height: 500px;
            animation: slideUp 0.3s ease-out;
        }

        .chat-panel.open {
            display: flex;
        }

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

        @keyframes slideUpMobile {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }

        .chat-header {
            background: linear-gradient(135deg, #182138 0%, #2b3963 100%);
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid #1e293b;
        }

        .chat-logo {
            width: 28px;
            height: 28px;
            object-fit: contain;
        }

        .chat-title {
            font-family: 'Poppins', sans-serif;
            font-size: 14px;
            font-weight: 600;
            color: #fff;
        }

        .chat-body {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
        }

        .chat-message {
            margin-bottom: 16px;
        }

        .message-text {
            font-size: 13px;
            color: #d1d5db;
            line-height: 1.4;
            margin-bottom: 12px;
        }

        .quick-reply-buttons {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .quick-reply-btn {
            background: #1a202c;
            border: 1px solid #374151;
            color: #9ca3af;
            padding: 10px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            text-align: left;
            transition: all 0.2s;
        }

        .quick-reply-btn:hover {
            background: #374151;
            color: #d1d5db;
            border-color: #4b5563;
        }

        .chat-footer {
            padding: 12px;
            border-top: 1px solid #1e293b;
            display: flex;
            gap: 8px;
        }

        .chat-input {
            flex: 1;
            background: #1a202c;
            border: 1px solid #374151;
            color: #d1d5db;
            padding: 10px 12px;
            border-radius: 6px;
            font-size: 13px;
            font-family: 'Inter', sans-serif;
        }

        .chat-input::placeholder {
            color: #6b7280;
        }

        .chat-send {
            background: #ef4444;
            border: none;
            color: #fff;
            width: 36px;
            height: 36px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: background 0.2s;
        }

        .chat-send:hover {
            background: #dc2626;
        }

        /* SOCIAL SHARE */
        .social-share {
            position: fixed;
            right: 24px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 6000;
        }

        .social-btn {
            width: 44px;
            height: 44px;
            background: #111827;
            border: 1px solid #1e293b;
            color: #9ca3af;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.2s;
        }

        .social-btn:hover {
            background: #1a202c;
            border-color: #374151;
            color: #d5a037;
        }

        /* FOOTER */
        .footer {
            background: #111827;
            border-top: 1px solid #1e293b;
            padding: 32px 0;
            margin-top: 48px;
        }

        .footer-content {
            text-align: center;
            font-size: 13px;
            color: #9ca3af;
        }

        .footer-attribution {
            margin-bottom: 12px;
        }

        .footer-links {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: #d5a037;
            text-decoration: none;
            margin: 0 12px;
            transition: color 0.2s;
        }

        .footer-links a:hover {
            color: #e5b855;
        }

        .footer-copyright {
            color: #6b7280;
        }

        /* RESPONSIVE */
        @media (max-width: 1024px) {
            .incident-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }

            .social-share {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .sticky-header {
                padding: 0 12px;
            }

            .header-title {
                font-size: 16px;
            }

            .header-right {
                gap: 8px;
            }

            .incident-grid {
                grid-template-columns: 1fr;
            }

            #map {
                height: 55vh;
                min-height: 400px;
            }

            .attorney-cta {
                padding: 20px;
            }

            .cta-title {
                font-size: 20px;
            }

            .cta-buttons {
                flex-direction: column;
            }

            .cta-btn {
                width: 100%;
                justify-content: center;
            }

            .mobile-contact-bar.visible {
                display: flex;
                padding-bottom: calc(12px + env(safe-area-inset-bottom));
            }

            #map {
                margin-bottom: 80px;
            }

            .chat-panel {
                width: calc(100vw - 48px);
                max-width: 380px;
            }

            .chat-button {
                bottom: 80px;
                right: 16px;
                position: fixed;
            }

            .chat-widget {
                bottom: 0;
                right: 0;
            }

            .demo-banner {
                flex-direction: column;
                text-align: center;
            }

            table {
                font-size: 12px;
            }

            th, td {
                padding: 8px 12px;
            }
        }

        @media (max-width: 480px) {
            .sticky-header {
                padding: 0 8px;
            }

            .header-left {
                gap: 8px;
            }

            .header-logo {
                height: 28px;
            }

            .header-title {
                font-size: 13px;
            }

            .header-right {
                gap: 6px;
                font-size: 11px;
            }

            .live-indicator {
                padding: 4px 8px;
            }

            .incident-card {
                border-radius: 6px;
            }

            /* Chat panel: full-width bottom sheet on mobile */
            .chat-widget {
                bottom: 0;
                right: 0;
                left: 0;
                max-width: 100vw;
                width: 100%;
            }

            .chat-button {
                position: fixed;
                bottom: 80px;
                right: 16px;
            }

            .chat-panel {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                top: auto;
                width: 100vw;
                max-width: 100vw;
                max-height: 75vh;
                border-radius: 16px 16px 0 0;
                border-bottom: none;
                animation: slideUpMobile 0.3s ease-out;
            }

            .chat-body {
                max-height: 45vh;
                -webkit-overflow-scrolling: touch;
            }

            .quick-reply-btn {
                padding: 14px 16px;
                font-size: 14px;
            }

            .chat-input {
                padding: 14px 16px;
                font-size: 16px;
            }

            .chat-footer {
                padding: 12px;
                padding-bottom: calc(12px + env(safe-area-inset-bottom));
            }

            .feed-title {
                font-size: 16px;
            }

            .cta-title {
                font-size: 18px;
            }

            /* Map controls - bigger tap targets on mobile */
            .map-controls {
                gap: 6px;
            }

            .map-toggle {
                padding: 8px 12px;
                font-size: 12px;
                white-space: nowrap;
            }

            /* Stats bar - smaller on mobile */
            .mobile-contact-bar.visible {
                padding-bottom: calc(16px + env(safe-area-inset-bottom));
            }

            /* Map overlay CTA */
            .map-cta-overlay {
                font-size: 12px;
                padding: 8px;
            }

            /* Contact strip */
            .contact-strip {
                padding: 16px 12px;
            }

            .contact-strip-text {
                font-size: 14px;
            }

            .contact-strip-btns {
                flex-direction: column;
                gap: 8px;
            }

            .contact-strip-btn {
                width: 100%;
                text-align: center;
            }
        }

        /* Lead Capture Modal */
        .lead-modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.75);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .lead-modal-overlay.active { display: flex; }
        .lead-modal {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            border: 1px solid rgba(213,160,55,0.3);
            border-radius: 16px;
            padding: 28px 24px;
            max-width: 420px;
            width: 100%;
            position: relative;
            box-shadow: 0 25px 50px rgba(0,0,0,0.5);
        }
        .lead-modal-close {
            position: absolute;
            top: 12px; right: 16px;
            background: none;
            border: none;
            color: #94a3b8;
            font-size: 24px;
            cursor: pointer;
        }
        .lead-modal h3 {
            font-family: 'Poppins', sans-serif;
            font-size: 20px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 4px;
        }
        .lead-modal .modal-subtitle {
            color: #94a3b8;
            font-size: 13px;
            margin-bottom: 16px;
        }
        .lead-modal .wreck-location {
            background: rgba(239,68,68,0.1);
            border: 1px solid rgba(239,68,68,0.3);
            border-radius: 8px;
            padding: 10px 14px;
            margin-bottom: 16px;
            color: #fca5a5;
            font-size: 13px;
            font-weight: 500;
        }
        .lead-form-group {
            margin-bottom: 12px;
        }
        .lead-form-group label {
            display: block;
            color: #cbd5e1;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .lead-form-group input, .lead-form-group select {
            width: 100%;
            background: #0f172a;
            border: 1px solid #334155;
            border-radius: 8px;
            padding: 12px 14px;
            color: #e5e7eb;
            font-size: 15px;
            font-family: 'Inter', sans-serif;
            outline: none;
            transition: border-color 0.2s;
        }
        .lead-form-group input:focus, .lead-form-group select:focus {
            border-color: #d5a037;
        }
        .lead-form-group input::placeholder { color: #475569; }
        .lead-submit-btn {
            display: block;
            width: 100%;
            background: linear-gradient(135deg, #d5a037, #b8860b);
            color: #000;
            font-weight: 700;
            font-size: 16px;
            padding: 14px;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            margin-top: 16px;
            font-family: 'Poppins', sans-serif;
            letter-spacing: 0.5px;
            transition: transform 0.15s, box-shadow 0.15s;
        }
        .lead-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(213,160,55,0.3); }
        .lead-form-disclaimer {
            text-align: center;
            color: #64748b;
            font-size: 11px;
            margin-top: 10px;
        }
        .lead-success {
            text-align: center;
            padding: 20px 0;
        }
        .lead-success .check-icon {
            font-size: 48px;
            margin-bottom: 12px;
        }
        .lead-success h3 {
            color: #22c55e;
            margin-bottom: 8px;
        }
        .lead-success p {
            color: #94a3b8;
            font-size: 14px;
            margin-bottom: 16px;
        }

        /* Case Quiz */
        .case-quiz-section {
            background: linear-gradient(135deg, #182138 0%, #1a1a2e 100%);
            border: 1px solid rgba(213,160,55,0.2);
            border-radius: 16px;
            padding: 32px 24px;
            margin: 24px 0;
            text-align: center;
        }
        .case-quiz-section h2 {
            font-family: 'Poppins', sans-serif;
            font-size: 22px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 6px;
        }
        .case-quiz-section .quiz-subtitle {
            color: #94a3b8;
            font-size: 14px;
            margin-bottom: 24px;
        }
        .quiz-progress {
            display: flex;
            gap: 6px;
            justify-content: center;
            margin-bottom: 20px;
        }
        .quiz-progress-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #334155;
            transition: background 0.3s;
        }
        .quiz-progress-dot.active { background: #d5a037; }
        .quiz-progress-dot.done { background: #22c55e; }
        .quiz-question {
            display: none;
            animation: fadeIn 0.3s ease;
        }
        .quiz-question.active { display: block; }
        .quiz-question h3 {
            color: #e5e7eb;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 16px;
        }
        .quiz-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-width: 360px;
            margin: 0 auto;
        }
        .quiz-option {
            background: #1e293b;
            border: 2px solid #334155;
            border-radius: 12px;
            padding: 14px 18px;
            color: #e5e7eb;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            text-align: left;
        }
        .quiz-option:hover { border-color: #d5a037; background: rgba(213,160,55,0.1); }
        .quiz-option.selected { border-color: #d5a037; background: rgba(213,160,55,0.15); }
        .quiz-result {
            display: none;
            animation: fadeIn 0.3s ease;
        }
        .quiz-result.active { display: block; }
        .quiz-result .strength-badge {
            display: inline-block;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 12px;
        }
        .strength-strong { background: rgba(34,197,94,0.2); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
        .strength-moderate { background: rgba(213,160,55,0.2); color: #d5a037; border: 1px solid rgba(213,160,55,0.3); }
        .strength-review { background: rgba(59,130,246,0.2); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }

        /* SMS Alert Banner */
        .sms-alert-banner {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            border: 1px solid rgba(40,176,181,0.3);
            border-radius: 16px;
            padding: 24px;
            margin: 24px 0;
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        .sms-alert-icon {
            font-size: 36px;
            flex-shrink: 0;
        }
        .sms-alert-content {
            flex: 1;
            min-width: 200px;
        }
        .sms-alert-content h3 {
            font-family: 'Poppins', sans-serif;
            font-size: 17px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 4px;
        }
        .sms-alert-content p {
            color: #94a3b8;
            font-size: 13px;
        }
        .sms-alert-form {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }
        .sms-alert-form input {
            background: #0f172a;
            border: 1px solid #334155;
            border-radius: 8px;
            padding: 12px 14px;
            color: #e5e7eb;
            font-size: 15px;
            width: 180px;
            outline: none;
            font-family: 'Inter', sans-serif;
        }
        .sms-alert-form input:focus { border-color: #28b0b5; }
        .sms-alert-form input::placeholder { color: #475569; }
        .sms-alert-form button {
            background: linear-gradient(135deg, #28b0b5, #1e8a8e);
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 12px 20px;
            font-weight: 700;
            font-size: 14px;
            cursor: pointer;
            white-space: nowrap;
            font-family: 'Poppins', sans-serif;
            transition: transform 0.15s;
        }
        .sms-alert-form button:hover { transform: translateY(-1px); }
        .sms-alert-success {
            display: none;
            color: #22c55e;
            font-weight: 600;
            font-size: 14px;
        }
        .sms-alert-success.show { display: block; }

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

        @media (max-width: 480px) {
            .sms-alert-banner { flex-direction: column; text-align: center; padding: 20px 16px; }
            .sms-alert-form { width: 100%; }
            .sms-alert-form input { flex: 1; width: auto; }
            .lead-modal { padding: 24px 18px; margin: 10px; }
            .case-quiz-section { padding: 24px 16px; }
        }

    
/* === SAFARI COMPATIBILITY FIXES === */
@supports not (gap: 1px) {
  [style*="gap"], .stat-grid, .incident-list, .form-group, .quiz-step, .cta-box, .footer-links {
    gap: 0 !important;
  }
  [style*="gap"] > *, .stat-grid > *, .incident-list > *, .form-group > *, .quiz-step > *, .cta-box > *, .footer-links > * {
    margin-bottom: 12px;
  }
  [style*="gap"] > *:last-child, .stat-grid > *:last-child, .incident-list > *:last-child {
    margin-bottom: 0;
  }
}

/* Mobile: move stats bar to bottom */
@media (max-width: 768px) {
  #stats-bar {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    order: 99;
  }
  body {
    padding-bottom: 80px;
  }
}


/* === MOBILE & SHARE IMPROVEMENTS === */
.share-fab { position: fixed; bottom: 20px; left: 20px !important; right: auto !important; z-index: 1000; background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; border: none; border-radius: 50%; width: 56px; height: 56px; font-size: 24px; cursor: pointer; box-shadow: 0 4px 14px rgba(239,68,68,0.5); display: flex; align-items: center; justify-content: center; transition: transform 0.2s, box-shadow 0.2s; -webkit-tap-highlight-color: transparent; }
.share-fab:hover, .share-fab:active { transform: scale(1.1); box-shadow: 0 6px 20px rgba(239,68,68,0.6); }
.share-fab svg { width: 24px; height: 24px; fill: currentColor; }
.nearme-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; -webkit-tap-highlight-color: transparent; margin-left: 12px; }
.nearme-btn:hover, .nearme-btn:active { background: rgba(59,130,246,0.25); border-color: #60a5fa; }
.nearme-btn svg { width: 16px; height: 16px; fill: currentColor; }
.nearme-pulse { display: inline-block; width: 8px; height: 8px; background: #60a5fa; border-radius: 50%; animation: pulse-ring 1.5s ease-out infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(96,165,250,0.5); } 70% { box-shadow: 0 0 0 8px rgba(96,165,250,0); } 100% { box-shadow: 0 0 0 0 rgba(96,165,250,0); } }
@media (max-width: 480px) {
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 12px !important; padding: 0 8px !important; }
  [style*="minmax(350px"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .share-fab { bottom: 20px; left: 16px !important; right: auto !important; width: 52px; height: 52px; }
  [style*="padding: 20px"] { padding: 14px !important; }
}
.lazy-fade { opacity: 0; transition: opacity 0.3s; }
.lazy-fade.loaded { opacity: 1; }
.refresh-indicator { font-size: 12px; color: #94a3b8; display: inline-flex; align-items: center; gap: 4px; }
.refresh-dot { display: inline-block; width: 6px; height: 6px; background: #22c55e; border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }


        /* === MOBILE TIGHTEN-UP === */
        @media (max-width: 768px) {
          div:has(> #stats-bar) { flex-wrap:wrap!important; gap:8px 16px!important; padding:12px 16px!important; }
          div:has(> #stats-bar) > div { flex:0 0 calc(50% - 8px)!important; text-align:center!important; }
          div:has(> #stats-bar) > div > div:first-child { font-size:22px!important; }
          div:has(> #stats-bar) > div > div:last-child { font-size:9px!important; }
          #map { height:50vh!important; min-height:300px!important; }
          .sticky-header { height:auto!important; min-height:44px!important; }
          .incident-card { padding:10px!important; }
          .incident-grid { gap:8px!important; padding:8px!important; }
          .feed-header { padding:10px 12px!important; }
          .attorney-cta { padding:16px!important; margin:8px!important; }
          .cta-title { font-size:18px!important; }
        }
        @media (max-width: 480px) {
          div:has(> #stats-bar) { gap:4px 12px!important; padding:10px 12px!important; }
          div:has(> #stats-bar) > div > div:first-child { font-size:18px!important; }
          div:has(> #stats-bar) > div > div:last-child { font-size:8px!important; }
          #map { height:45vh!important; min-height:260px!important; }
          .incident-card { padding:8px!important; }
        }

        /* Safari mobile Near Me fix */
        @media (max-width: 768px) {
          .feed-header { position: relative; z-index: 8500; }
          .nearme-btn { min-height: 44px; min-width: 44px; -webkit-tap-highlight-color: rgba(0,0,0,0.1); touch-action: manipulation; }
          .incident-grid { padding-bottom: 80px !important; }
        }
/* Chat widget positioning */
.chat-widget {
    right: 24px !important;
    left: auto !important;
}
.chat-widget .chat-toggle,
.chat-widget .chat-button {
    right: 24px !important;
    left: auto !important;
}
.chat-widget .chat-panel {
    right: 0 !important;
    left: auto !important;
}
@media (max-width: 768px) {
    .chat-widget {
        right: 12px !important;
        left: auto !important;
        bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }
    .chat-widget .chat-toggle,
    .chat-widget .chat-button {
        right: 12px !important;
        left: auto !important;
    }
    .chat-widget .chat-panel {
        right: 0 !important;
        left: auto !important;
    }
}
.leaflet-popup-content-wrapper {
    background: #1a2332 !important;
    color: #e5e7eb !important;
    border: 1px solid #374151 !important;
    border-radius: 12px !important;
}
.leaflet-popup-tip {
    background: #1a2332 !important;
}
.leaflet-popup-content,
.leaflet-popup-content div {
    color: #e5e7eb !important;
}
.leaflet-popup-content a {
    color: #d5a037 !important;
}
.leaflet-popup-close-button {
    color: #9ca3af !important;
    font-size: 20px !important;
}
.leaflet-popup-close-button:hover {
    color: #fff !important;
}
.cm-chat-minimize {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cm-chat-minimize:hover {
    color: #fff;
}
.chat-widget.cm-minimized .chat-panel,
.chat-widget.cm-auto-minimized .chat-panel {
    display: none !important;
}
.chat-widget.cm-minimized .chat-button,
.chat-widget.cm-auto-minimized .chat-button {
    display: flex !important;
}

/* Mobile header/chat fixes from WP version */
@media (max-width: 768px) {
    .sticky-header {
        flex-wrap: wrap;
        padding: 8px 12px !important;
        gap: 4px;
        position: relative;
    }
    .header-left {
        flex-wrap: wrap;
        gap: 6px;
        width: calc(100% - 90px);
    }
    .header-left a,
    .header-logo {
        flex-shrink: 0;
    }
    .header-logo {
        max-width: 140px;
        width: 140px;
        height: auto;
    }
    .header-title {
        font-size: 12px;
        line-height: 1.3;
        white-space: normal;
        word-wrap: break-word;
    }
    .header-right {
        position: absolute;
        top: 8px;
        right: 12px;
    }
    .feed-header {
        flex-wrap: wrap;
        gap: 4px;
        padding: 6px 12px;
    }
    .feed-title {
        flex-wrap: wrap;
        width: auto;
        gap: 6px;
    }
    .feed-title h2 {
        font-size: 13px;
    }
    .nearme-btn {
        font-size: 10px;
        padding: 3px 8px;
    }
    .feed-meta {
        font-size: 10px;
        white-space: nowrap;
    }
    .chat-widget {
        bottom: 80px;
        left: 8px;
    }
    .chat-button {
        width: 44px;
        height: 44px;
    }
    .chat-panel {
        max-height: 45vh;
        width: 280px;
    }
}
@media (max-width: 480px) {
    .header-logo {
        max-width: 110px;
        width: 110px;
    }
    .header-title {
        font-size: 11px;
        max-width: calc(100vw - 200px);
    }
    .header-right {
        top: 6px;
        right: 8px;
    }
    .live-indicator {
        font-size: 11px;
        padding: 2px 8px;
    }
    .live-text,
    .live-count {
        font-size: 11px;
    }
    .chat-widget {
        bottom: 70px;
        left: 4px;
    }
}

.home-link-bar {
    background: #101626;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    padding: 10px 16px;
    font-family: "Poppins", sans-serif;
}
.home-link-bar a {
    color: #d5a037;
    font-weight: 600;
    text-decoration: none;
}
.home-link-bar a:hover {
    text-decoration: underline;
}
