        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            overflow-x: hidden;
            overflow-y: auto;
            margin: 0;
            padding: 0;
        }
        
        /* Map viewport container - locks to screen */
        .map-viewport {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden;
        }
        
        /* Map Container - Full viewport */
        #map {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            z-index: 1;
            background: #000;
        }
        
        /* Force map canvas layers to stay low */
        .mapboxgl-canvas-container {
            z-index: 1 !important;
        }
        
        /* Initial Loading Screen */
        #initial-loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #f0f8ff;
            z-index: 1001;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding-bottom: 20vh;
            opacity: 1;
            transition: opacity 0.85s cubic-bezier(0.97, 0.03, 0.88, 0.03);
            pointer-events: none;
        }
        
        #initial-loading-overlay.hidden {
            opacity: 0;
        }
        
        #initial-loading-context {
            font-size: 28px;
            font-weight: 700;
            color: rgba(0, 0, 0, 0.75);
            margin-bottom: 45px;
            animation: fadeInContext 0.5s ease-in;
            text-align: center;
            position: relative;
            max-width: 90%;
            text-wrap: balance;
        }
        
        #initial-loading-context::after {
            content: '';
            position: absolute;
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 1px;
            background: rgba(0, 0, 0, 0.08);
        }
        
        @keyframes fadeInContext {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        #initial-loading-logo {
            height: 60px;
            margin-bottom: 40px;
            opacity: 0.9;
            animation: fadeInLogo 0.5s ease-in;
        }
        
        @keyframes fadeInLogo {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 0.9;
                transform: translateY(0);
            }
        }
        
        #initial-loading-spinner {
            width: 64px;
            height: 64px;
            border: 5px solid rgba(0, 0, 0, 0.1);
            border-top-color: rgba(0, 0, 0, 0.6);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-bottom: 24px;
        }
        
        #initial-loading-text {
            color: rgba(0, 0, 0, 0.6);
            font-size: 20px;
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        
        #initial-loading-text::after {
            content: '...';
            animation: dots 1.5s infinite;
        }

        #mapbox-load-failure {
            position: absolute;
            inset: 0;
            z-index: 1010;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: rgba(240, 248, 255, 0.96);
        }

        #mapbox-load-failure.active {
            display: flex;
        }

        .mapbox-failure-card {
            width: min(440px, 100%);
            background: #fff;
            border: 1px solid rgba(0, 0, 0, 0.12);
            border-radius: 8px;
            box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
            padding: 24px;
            color: #1f2933;
        }

        .mapbox-failure-card h2 {
            margin: 0 0 12px;
            font-size: 24px;
            line-height: 1.2;
            letter-spacing: 0;
        }

        .mapbox-failure-card p {
            margin: 0 0 12px;
            font-size: 15px;
            line-height: 1.45;
            color: #3c4856;
        }

        .mapbox-failure-card ul {
            margin: 0 0 20px 20px;
            padding: 0;
            color: #3c4856;
            font-size: 15px;
            line-height: 1.45;
        }

        .mapbox-failure-card button {
            width: 100%;
            border: 0;
            border-radius: 6px;
            padding: 12px 16px;
            background: #0f766e;
            color: #fff;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
        }

        .mapbox-failure-card button:hover {
            background: #115e59;
        }
        
        /* Scroll to content button */
        .scroll-to-content-btn {
            padding: 8px 16px;
            cursor: pointer;
            color: #0066cc;
            transition: all 0.2s;
            border-radius: 6px;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            font-weight: 600;
            border: 1px solid rgba(0, 102, 204, 0.2);
            background: rgba(0, 102, 204, 0.05);
        }
        
        .scroll-to-content-btn:hover {
            background: rgba(0, 102, 204, 0.1);
            border-color: rgba(0, 102, 204, 0.3);
        }
        
        .scroll-to-content-btn svg {
            animation: bounce 2s infinite;
        }
        
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-3px);
            }
            60% {
                transform: translateY(-1px);
            }
        }
        
        /* Content section below map */
        .content-section {
            position: relative;
            background: white;
            min-height: 50vh;
            z-index: 2;
            padding: 60px 20px;
        }
        
        .content-container {
            max-width: 900px;
            margin: 0 auto;
        }
        
        .content-section h1 {
            font-size: 32px;
            font-weight: 700;
            color: #222;
            margin-bottom: 20px;
            line-height: 1.3;
        }
        
        .content-section h2 {
            font-size: 24px;
            font-weight: 600;
            color: #333;
            margin-top: 40px;
            margin-bottom: 16px;
        }
        
        .content-section p {
            font-size: 16px;
            line-height: 1.7;
            color: #555;
            margin-bottom: 16px;
        }
        
        .content-section ul,
        .content-section ol {
            font-size: 16px;
            line-height: 1.8;
            color: #555;
            margin-bottom: 16px;
            margin-left: 20px;
        }
        
        .content-section li {
            margin-bottom: 6px;
        }
        
        .content-section blockquote {
            margin: 24px 0;
            padding: 16px 20px;
            border-left: 4px solid #0066cc;
            background: #f8f9fa;
            font-size: 16px;
            line-height: 1.7;
            color: #444;
            font-style: italic;
        }
        
        .content-section blockquote p {
            margin-bottom: 0;
        }
        
        .content-section blockquote p:last-child {
            margin-bottom: 0;
        }
        
        /* Footer styling lives in components/footer.html */

        .content-section a {
            color: #0066cc;
            text-decoration: none;
        }
        
        .content-section a:hover {
            text-decoration: underline;
        }
        
        /* Top Bar - Search & Icons (2-row layout) */
        .geocoder-container {
            position: fixed;
            top: 12px;
            left: 12px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 0;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        
        .geocoder-top-row {
            display: flex;
            align-items: center;
            padding-right: 8px;
        }
        
        .geocoder-container .mapboxgl-ctrl-geocoder {
            width: 240px !important;
            border-radius: 8px 0 0 0 !important;
            box-shadow: none !important;
        }
        
        /* When nothing below geocoder, round bottom-left corner too */
        .geocoder-container:not(:has(.geocoder-legend)):not(:has(.geocoder-carrier-links)) .mapboxgl-ctrl-geocoder {
            border-radius: 8px 0 0 8px !important;
        }
        
        .geocoder-container .mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--icon {
            top: 50%;
            transform: translateY(-50%);
        }
        
        .geocoder-container .map-control-icons {
            display: flex;
            align-items: center;
            gap: 4px;
            padding-left: 8px;
        }
        
        /* Map Control Icons */
        .map-icon-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 6px;
            border-radius: 6px;
            color: #666;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .map-icon-btn:hover {
            background: #f0f0f0;
            color: #333;
        }
        
        .map-icon-btn svg {
            width: 18px;
            height: 18px;
        }
        
        .map-icon-btn.active {
            color: #0d47a1;
            background: rgba(13, 71, 161, 0.1);
        }
        
        /* Allow suggestions dropdown to be wider than input */
        .geocoder-container .mapboxgl-ctrl-geocoder .suggestions {
            width: 300px !important;
            max-width: 300px !important;
        }
        
        /* Legend as first row in geocoder container */
        .geocoder-legend {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 11px;
            color: #555;
            white-space: nowrap;
            padding: 8px 12px;
        }
        
        /* Subtle separator line between geocoder and legend - gradient fades to white on edges */
        .geocoder-legend::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(to right, 
                transparent 0%, 
                rgba(0, 0, 0, 0.08) 20%, 
                rgba(0, 0, 0, 0.08) 80%, 
                transparent 100%
            );
        }
        
        .geocoder-container .geocoder-legend {
            position: relative;
        }
        
        .geocoder-legend .legend-bar {
            width: 100px;
            height: 14px;
            border-radius: 3px;
            background: linear-gradient(to right, 
                #e60000 0%, 
                #ff4400 20%, 
                #ff9900 40%, 
                #ffcc00 60%, 
                #88cc00 80%, 
                #00aa00 100%);
        }
        
        /* Carrier links row inside geocoder container */
        .geocoder-carrier-links {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 6px 12px;
            position: relative;
        }

        .geocoder-carrier-links::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(to right,
                transparent 0%,
                rgba(0, 0, 0, 0.08) 20%,
                rgba(0, 0, 0, 0.08) 80%,
                transparent 100%
            );
        }

        .geocoder-carrier-link {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            text-decoration: none;
            color: #0099ff;
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
            padding: 2px 4px;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .geocoder-carrier-link:hover {
            background: rgba(0, 153, 255, 0.1);
            color: #0077cc;
        }

        .geocoder-carrier-sponsor-label {
            color: #777;
            font-size: 11px;
            font-weight: 600;
            white-space: nowrap;
        }

        .geocoder-carrier-link svg {
            width: 10px;
            height: 10px;
            flex-shrink: 0;
        }

        .geocoder-carrier-separator {
            color: #ccc;
            font-size: 12px;
        }

        .mobile-carrier-sponsored-label {
            color: #777;
            font-size: 11px;
            font-weight: 600;
            margin-left: 8px;
            white-space: nowrap;
        }

        /* Round bottom corners when links row is last child */
        .geocoder-carrier-links:last-child {
            border-radius: 0 0 8px 8px;
        }

        /* Mobile top bar (hidden on desktop) */
        .mobile-top-bar {
            display: none;
            position: fixed;
            top: 4px;
            left: 4px;
            right: 4px;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 12px;
            padding: 6px 0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            border: 1px solid rgba(0,0,0,0.1);
            backdrop-filter: blur(10px);
            align-items: center;
            gap: 4px;
        }
        
        .mobile-top-bar-section {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .mobile-search-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
            flex-shrink: 0;
        }
        
        .mobile-search-btn:active {
            background: rgba(0, 0, 0, 0.05);
            border-radius: 6px;
        }
        
        .mobile-search-btn svg {
            width: 16px;
            height: 16px;
            color: #666;
            flex-shrink: 0;
            stroke: #666;
        }
        
        .mobile-search-btn span {
            font-size: 13px;
            color: #666;
        }
        
        .mobile-top-bar-separator {
            color: rgba(0, 0, 0, 0.3);
            font-size: 14px;
            user-select: none;
        }

        /* The plans/map links center inside equal flex halves, so unequal text
           widths make the dot look off-center. Hug the dot from both sides
           instead (paired with justify-content in updateNetworkButtons). */
        #mobile-carrier-map-separator {
            margin: 0 9px;
        }
        
        .mobile-carrier-link {
            display: flex;
            align-items: center;
            gap: 4px;
            text-decoration: none;
            color: #0099ff;
            font-size: 12px;
            font-weight: 600;
            padding: 4px 6px;
            border-radius: 6px;
            transition: background 0.2s;
            white-space: nowrap;
        }
        
        .mobile-carrier-link:active {
            background: rgba(0, 153, 255, 0.1);
        }
        
        .mobile-carrier-link svg {
            width: 11px;
            height: 11px;
            stroke-width: 3;
            flex-shrink: 0;
        }

        /* Mint ad in the mobile top bar (fallback while a non-partner regional
           network is selected). Matches the carrier pages' mint ad styling. */
        .mobile-mint-ad-label {
            font-size: 11px;
            color: #999;
            font-weight: 500;
            white-space: nowrap;
        }

        .mobile-mint-ad {
            font-size: 12px;
            font-weight: 500;
            color: #16a34a;
            text-decoration: none;
            white-space: nowrap;
        }
        
        .search-icon {
            width: 18px;
            height: 18px;
            color: #666;
        }
        
        /* Settings Modal */
        .settings-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            /* Sits above mapboxgl popups, which use z-index: 999999 !important */
            z-index: 1000000 !important;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        
        .settings-modal.active {
            display: flex;
        }
        
        .settings-modal-content {
            background: white;
            border-radius: 12px;
            max-width: 500px;
            width: 100%;
            max-height: 80vh;
            overflow-y: auto;
            overscroll-behavior: contain;
            box-shadow: 0 8px 32px rgba(0,0,0,0.2);
        }
        
        .settings-modal-header {
            padding: 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .settings-modal-title {
            font-size: 20px;
            font-weight: 600;
            color: #333;
            margin: 0;
        }
        
        .settings-close-btn {
            background: none;
            border: none;
            font-size: 28px;
            color: #999;
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .settings-close-btn svg {
            width: 24px;
            height: 24px;
            stroke: currentColor;
        }
        
        .settings-close-btn:hover {
            background: rgba(0,0,0,0.05);
            color: #333;
        }
        
        .settings-reset-section {
            padding: 12px 20px;
            border-bottom: 1px solid #f0f0f0;
            background: #fafafa;
        }
        
        .reset-defaults-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 10px 16px;
            border: 1px solid #ddd;
            background: white;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            color: #555;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .reset-defaults-btn:hover {
            background: #f8f8f8;
            border-color: #bbb;
        }
        
        .settings-modal-body {
            padding: 24px 20px;
        }

        .settings-apply-btn {
            width: 100%;
            padding: 12px;
            background: linear-gradient(135deg, #0066cc, #0052a3);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            margin-top: 16px;
        }

        .settings-apply-btn:hover {
            background: linear-gradient(135deg, #0052a3, #003d7a);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0,102,204,0.3);
        }

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

        .setting-group {
            margin-bottom: 24px;
        }

        .setting-group:last-of-type {
            margin-bottom: 0;
        }

        .setting-label {
            display: block;
            font-size: 15px;
            font-weight: 600;
            color: #333;
            margin-bottom: 8px;
        }

        .setting-select,
        .setting-input {
            width: 100%;
            padding: 10px 12px;
            font-size: 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            background: white;
            color: #333;
            transition: all 0.2s;
            font-family: inherit;
            box-sizing: border-box;
        }

        /* Kill native select chrome so Safari/Chrome render identically. */
        .setting-select {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            cursor: pointer;
            padding-right: 36px;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23666'><path fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/></svg>");
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 14px;
        }

        .setting-input {
            cursor: text;
        }

        .setting-select:hover,
        .setting-input:hover {
            border-color: #0066cc;
        }

        .setting-select:focus,
        .setting-input:focus {
            outline: none;
            border-color: #0066cc;
            box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
        }

        .share-link-row {
            display: flex;
            gap: 8px;
        }

        .share-link-row .setting-input {
            flex: 1;
            min-width: 0;
        }

        .copy-link-btn {
            padding: 10px 16px;
            border: 1px solid #ddd;
            background: white;
            color: #333;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .copy-link-btn:hover {
            border-color: #0066cc;
            color: #0066cc;
        }

        .copy-link-btn.copied {
            background: #16a34a;
            color: white;
            border-color: #16a34a;
        }

        .setting-checkbox-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            cursor: pointer;
            margin: 0;
        }

        .setting-checkbox-row input[type="checkbox"] {
            margin-top: 2px;
            width: 16px;
            height: 16px;
            accent-color: #0066cc;
            cursor: pointer;
            flex-shrink: 0;
        }

        .setting-checkbox-label {
            font-size: 14px;
            color: #333;
            cursor: pointer;
            line-height: 1.4;
        }

        .setting-checkbox-hint {
            font-size: 12px;
            color: #888;
            margin-top: 2px;
        }

        /* Toggleable dBm fragments inside popups */
        body.hide-dbm .popup-dbm {
            display: none;
        }

        .settings-section {
            margin-bottom: 32px;
        }
        
        .settings-section:last-child {
            margin-bottom: 0;
        }
        
        .settings-section-title {
            display: flex;
            align-items: center;
            font-size: 14px;
            font-weight: 600;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 16px;
        }
        
        .section-icon {
            width: 18px;
            height: 18px;
            margin-right: 8px;
            opacity: 0.6;
        }
        
        .settings-options-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
            background: #fafafa;
            border-radius: 10px;
            padding: 8px;
        }
        
        .settings-option {
            display: flex;
            align-items: center;
            padding: 14px 12px;
            cursor: pointer;
            border-radius: 8px;
            background: white;
            border: 2px solid transparent;
            transition: all 0.2s;
        }
        
        .settings-option:hover {
            border-color: #e0e0e0;
        }
        
        .settings-option input[type="radio"] {
            width: 20px;
            height: 20px;
            margin-right: 14px;
            cursor: pointer;
            accent-color: #0d47a1;
            flex-shrink: 0;
        }
        
        .settings-option-content {
            display: flex;
            flex-direction: column;
            gap: 2px;
            flex: 1;
        }
        
        .settings-option-label {
            font-size: 15px;
            font-weight: 500;
            color: #333;
            cursor: pointer;
        }
        
        .settings-option-description {
            font-size: 13px;
            color: #888;
        }
        
        /* Regional network buttons in the settings modal */
        .settings-regional-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .settings-regional-btn {
            padding: 8px 14px;
            border: 1px solid #ddd;
            background: white;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            color: #555;
            cursor: pointer;
            transition: all 0.2s;
        }

        .settings-regional-btn:hover {
            background: #f8f8f8;
            border-color: #bbb;
        }

        /* Regional network notice modal (shown once per network) */
        .regional-notice-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 100000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .regional-notice-modal.active {
            display: flex;
        }

        .regional-notice-content {
            background: white;
            border-radius: 12px;
            max-width: 440px;
            width: 100%;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            padding: 24px;
        }

        .regional-notice-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }

        .regional-notice-header svg {
            width: 24px;
            height: 24px;
            color: #f59e0b;
            flex-shrink: 0;
        }

        .regional-notice-title {
            font-size: 18px;
            font-weight: 600;
            color: #111827;
        }

        .regional-notice-text {
            font-size: 15px;
            line-height: 1.6;
            color: #374151;
            margin: 0 0 20px 0;
        }

        .regional-notice-btn {
            background: #333;
            color: white;
            border: none;
            padding: 10px 24px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
        }

        .regional-notice-btn:hover {
            background: #555;
        }
        
        .settings-hint {
            font-size: 13px;
            color: #888;
            margin: 0;
            padding-left: 4px;
        }
        
        /* Custom Popup Styling */
        /* Force popups to appear above everything */
        .mapboxgl-popup {
            z-index: 999999 !important;
        }
        
        .mapboxgl-popup-tip {
            z-index: 999999 !important;
        }
        
        .mapboxgl-popup-content {
            position: relative;
            z-index: 999999 !important;
            padding: 0;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.15);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            min-width: 200px;
        }
        
        .mapboxgl-popup-close-button {
            font-size: 18px;
            padding: 4px 8px;
            color: #999;
        }
        
        .mapboxgl-popup-close-button:hover {
            color: #333;
        }
        
        .coverage-popup {
            padding: 16px;
            max-width: 240px;
        }
        
        .coverage-popup-carrier {
            font-size: 15px;
            font-weight: 600;
            color: #333;
            margin: 0 0 8px 0;
            padding-right: 11px;
        }
        
        .coverage-popup-signal {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 0;
        }
        
        .signal-bar {
            width: 4px;
            height: 48px;
            border-radius: 2px;
            flex-shrink: 0;
        }
        
        .signal-info {
            flex: 1;
        }
        
        .signal-quality {
            font-size: 14px;
            font-weight: 500;
            color: #555;
            margin: 0 0 2px 0;
        }
        
        .signal-strength {
            font-size: 12px;
            color: #999;
            margin: 0;
        }
        
        .coverage-line {
            display: inline;
        }
        
        .coverage-info-icon {
            display: inline-block;
            position: relative;
            cursor: help;
            color: #999;
            font-size: 11px;
            line-height: 1;
            margin-left: 2px;
            vertical-align: baseline;
            font-weight: normal !important;
        }
        
        .coverage-info-tooltip {
            display: none;
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: #333;
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 11px;
            line-height: 1.4;
            white-space: normal;
            max-width: 460px;
            margin-bottom: 6px;
            z-index: 10000;
            text-align: left;
        }
        
        .coverage-info-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 5px solid transparent;
            border-top-color: #333;
        }
        
        .coverage-info-icon:hover .coverage-info-tooltip,
        .coverage-info-icon.active .coverage-info-tooltip {
            display: block;
        }
        
        /* Hide default Mapbox geolocate control (we use custom button) */
        .mapboxgl-ctrl-geolocate {
            display: none !important;
        }
        
        /* Geocoder Modal */
        .geocoder-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            display: none;
            align-items: flex-start;
            justify-content: center;
            padding-top: 20vh;
        }
        
        .geocoder-modal.show {
            display: flex;
        }
        
        .geocoder-modal-content {
            background: white;
            border-radius: 12px;
            padding: 24px;
            width: 90%;
            max-width: 500px;
            max-height: 80vh;
            overflow: visible;
            overscroll-behavior: contain;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            position: relative;
        }
        
        .geocoder-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .geocoder-modal-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }
        
        .geocoder-close-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            color: #999;
            transition: color 0.2s;
        }
        
        .geocoder-close-btn:hover {
            color: #333;
        }
        
        .geocoder-close-btn svg {
            width: 24px;
            height: 24px;
        }
        
        #geocoder-container {
            width: 100%;
        }
        
        .mapboxgl-ctrl-geocoder {
            width: 100% !important;
            max-width: none !important;
            box-shadow: none !important;
        }
        
        .mapboxgl-ctrl-geocoder input[type="text"] {
            height: 44px !important;
            font-size: 16px !important;
        }
        
        /* Carrier Selection - Bottom Center Menu */
        .carrier-selector {
            position: fixed;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 12px;
            padding: 8px 24px 12px 24px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.2);
            pointer-events: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            max-width: 95vw;
        }
        
        .carrier-selector.cta-bar-hidden {
            bottom: 20px;
        }
        
        /* Row 1: Network buttons + tech selector */
        .carrier-selector-main {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        /* Row 2: Disclaimer + Legend + Map Info */
        .carrier-selector-disclaimer-row {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 16px;
            white-space: nowrap;
        }
        
        .carrier-selector-disclaimer {
            font-size: 11px;
            color: #666;
        }
        
        .carrier-selector-disclaimer a {
            color: inherit;
            text-decoration: underline;
        }
        
        .carrier-selector-disclaimer-separator {
            color: #999;
            font-size: 11px;
        }
        
        .carrier-selector-legend {
            display: none; /* Hidden by default on base template - shown by carrier pages */
            align-items: center;
            gap: 8px;
            font-size: 11px;
            color: #666;
            white-space: nowrap;
        }
        
        /* Hide the legend separator when legend is not shown */
        .carrier-selector-legend + .legend-separator {
            display: none;
        }
        
        /* Carrier pages can add this class to show legend in carrier-selector */
        .carrier-selector-legend.show-in-selector {
            display: flex;
        }
        
        .carrier-selector-legend.show-in-selector + .legend-separator {
            display: inline;
        }
        
        .carrier-selector-legend .legend-bar {
            width: 80px;
            height: 14px;
            border-radius: 3px;
            background: linear-gradient(to right, #e63333, #ff5500, #ffc700, #aadd00, #66cc00, #44bb00);
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        
        .carrier-selector-map-info-link {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            color: #666;
            text-decoration: underline;
            font-weight: 400;
            font-size: 11px;
        }
        
        .carrier-selector-map-info-link:hover {
            color: #666;
        }
        
        .carrier-selector-map-info-link svg {
            width: 10px;
            height: 10px;
            transition: transform 0.2s;
        }
        
        .carrier-selector-map-info-link:hover svg {
            transform: translateY(2px);
        }
        
        /* Tech filter in carrier selector */
        .carrier-selector-tech-filter {
            display: inline-flex;
            align-items: center;
        }
        
        .carrier-selector-tech-filter .tech-select {
            padding: 8px 8px 8px 12px;
            border: none;
            border-radius: 0;
            background: transparent;
            color: #666;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: color 0.2s ease;
            outline: none;
        }
        
        .carrier-selector-tech-filter .tech-select:hover {
            color: #333;
        }
        
        .carrier-selector-tech-filter .tech-select:focus {
            outline: none;
        }

        /* Mobile-only settings gear in the carrier selector — desktop gets its
           gear from the geocoder icons, so this stays hidden above 768px. */
        .carrier-selector-gear {
            display: none;
            background: transparent;
            border: none;
            color: #666;
            padding: 6px;
            cursor: pointer;
            align-items: center;
            position: relative;
            top: -2px;
        }

        .carrier-selector-gear svg {
            width: 17px;
            height: 17px;
        }

        .carrier-selector-gear:hover {
            color: #333;
        }

        .carrier-selector-icon {
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .carrier-selector-icon:hover svg {
            fill: #333;
        }
        
        .carrier-selector-icon svg {
            width: 20px;
            height: 20px;
            fill: #666;
        }
        
        .carrier-buttons {
            display: flex;
            gap: 12px;
        }
        
        .carrier-btn {
            padding: 8px 16px;
            border: none;
            border-bottom: 3px solid transparent;
            background: transparent;
            color: #666;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
            white-space: nowrap;
        }
        
        .carrier-btn:hover:not(.active) {
            color: #333;
        }
        
        .carrier-btn.active[data-carrier="verizon"] {
            color: #cd040b;
            border-bottom-color: #cd040b;
        }
        
        .carrier-btn.active[data-carrier="verizon"]:hover {
            color: #e6050c;
        }
        
        .carrier-btn.active[data-carrier="att"] {
            color: #0078c7;
            border-bottom-color: #0078c7;
        }
        
        .carrier-btn.active[data-carrier="att"]:hover {
            color: #0091ea;
        }
        
        .carrier-btn.active[data-carrier="tmobile"] {
            color: #e20074;
            border-bottom-color: #e20074;
        }
        
        .carrier-btn.active[data-carrier="tmobile"]:hover {
            color: #ff0084;
        }

        /* Regional network button (GCI, C Spire, Cellcom) — brand color comes
           from the --regional-active inline var set in the template. */
        .carrier-btn.carrier-btn-regional.active {
            color: var(--regional-active, #0066cc);
            border-bottom-color: var(--regional-active, #0066cc);
        }

        
        /* Technology Filter (in bottom bar) */
        .tech-filter {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: transparent;
            padding: 0;
            border-radius: 8px;
        }
        
        .tech-filter-label {
            font-size: 12px;
            color: #333;
            font-weight: 600;
            white-space: nowrap;
        }
        
        .row-separator {
            color: #999;
            font-size: 14px;
            font-weight: 300;
        }
        
        .tech-select {
            padding: 8px 14px;
            border: 1px solid rgba(0,0,0,0.15);
            border-radius: 6px;
            background: transparent;
            backdrop-filter: blur(10px);
            color: #333;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .tech-select:hover {
            border-color: rgba(0,0,0,0.25);
            background: #fafafa;
        }
        
        .tech-filter-label {
            display: none; /* Hidden on desktop */
        }
        
        /* Hide map UI when viewing text content */
        body.viewing-content .geocoder-container,
        body.viewing-content .provider-cta-bar {
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        
        /* Provider CTA Bar Styles */
        .provider-cta-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 10;
            border-top: 2px solid rgba(255, 255, 255, 0.1);
            padding: 10px 20px;
            display: none;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
        }
        
        .provider-cta-bar.active {
            display: flex;
        }
        
        .provider-cta-content {
            flex: 1;
            color: white;
            display: flex;
            justify-content: center;
        }
        
        .provider-cta-description {
            margin: 0;
            font-size: 15px;
            line-height: 1.5;
            text-align: left;
        }
        
        .provider-cta-button {
            background: white;
            color: #1e3a8a;
            padding: 10px 24px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            font-size: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
            white-space: nowrap;
            flex-shrink: 0;
        }
        
        .provider-cta-button:hover {
            background: #e20074 !important;
            color: white !important;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        
        .provider-cta-button svg {
            width: 20px;
            height: 20px;
        }
        
        .tmobile-bar-logo {
            height: 48px;
            margin-right: 20px;
        }
        
        .mobile-sponsored-tag {
            display: none;
        }
        
        .mobile-only-text {
            display: none;
        }
        
        .desktop-sponsored-tag {
            display: inline;
            font-size: 0.85em;
            color: inherit;
        }
        
        .sponsor-bullet {
            color: inherit;
            padding: 0 4px;
            position: relative;
            top: -1px;
        }
        
        /* Map Legend */
        .map-legend {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 13px;
            color: #333;
            padding: 6px 8px;
            background: transparent;
            border-radius: 8px;
            flex-wrap: wrap;
            border: 1px solid rgba(0,0,0,0.08);
            backdrop-filter: blur(10px);
        }
        
        .legend-gradient {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .legend-gradient span {
            font-size: 12px;
            color: #333;
            font-weight: 500;
        }
        
        .legend-bar {
            width: 120px;
            height: 20px;
            background: linear-gradient(to right, 
                #e60000 0%, 
                #ff4400 20%, 
                #ffcc00 40%, 
                #33cc00 70%, 
                #00cc00 100%);
            border-radius: 4px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            opacity: 0.7;
        }
        
        /* Loading Indicator */
        .loading {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 100;
            display: none;
        }
        
        .loading.show {
            display: block;
        }
        
        .loading-container {
            background: rgba(255, 255, 255, 0.95);
            padding: 16px 32px;
            border-radius: 12px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
            gap: 16px;
            min-width: 280px;
        }
        
        .loading-spinner-wrapper {
            position: relative;
            width: 48px;
            height: 48px;
            flex-shrink: 0;
        }
        
        .loading-spinner {
            width: 32px;
            height: 32px;
            opacity: 0.7;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(calc(-50% + 1px), calc(-50% - 1px));
        }
        
        .loading-circle {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 3px solid rgba(0, 102, 204, 0.1);
            border-top-color: #0066cc;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .loading-text-wrapper {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
        }
        
        .loading-text {
            font-weight: 600;
            color: #333;
            font-size: 16px;
            white-space: nowrap;
            display: inline-flex;
        }
        
        .loading-text::after {
            content: '...';
            display: inline-block;
            width: 1.5em;
            text-align: left;
            animation: loadingDots 1.5s infinite;
        }
        
        .loading-secondary-text {
            font-size: 13px;
            color: #999;
            opacity: 0;
            transition: opacity 0.3s ease;
            white-space: nowrap;
        }
        
        .loading-secondary-text.visible {
            opacity: 1;
        }
        
        @keyframes loadingDots {
            0%, 24% { content: ''; }
            25%, 49% { content: '.'; }
            50%, 74% { content: '..'; }
            75%, 100% { content: '...'; }
        }
        
        /* Mobile Optimizations */
        @media (max-width: 768px) {
            /* Hide elements on mobile */
            .geocoder-container,
            .hide-on-mobile {
                display: none !important;
            }
            
            .geocoder-container .map-control-icons {
                gap: 2px;
                padding-left: 4px;
                flex-shrink: 0;
            }
            
            .geocoder-container .map-icon-btn {
                padding: 8px;
            }
            
            .geocoder-container .map-icon-btn svg {
                width: 20px;
                height: 20px;
            }
            
            /* Show mobile top bar on mobile */
            .mobile-top-bar {
                display: flex !important;
            }
            
            .carrier-selector {
                left: 50%;
                right: auto;
                width: 97vw;
                transform: translateX(-50%);
                padding: 10px;
                gap: 8px;
                max-width: 97vw;
            }
            
            .carrier-selector.cta-bar-hidden {
                bottom: 25px;
            }
            
            .carrier-selector-main {
                width: 100%;
                justify-content: center;
                gap: 4px; /* tighter than desktop so the row clears 360px screens */
            }
            
            .carrier-selector-icon {
                width: 20px;
                height: 20px;
            }
            
            .carrier-selector-icon svg {
                width: 20px;
                height: 20px;
            }
            
            .carrier-btn {
                padding: 7px 12px;
                font-size: 13px;
            }
            
            .carrier-selector-tech-filter .tech-select {
                /* Tight left spacing so the big-3 + tech row clears 360px screens */
                padding: 7px 8px 7px 6px;
                margin-left: 0;
                font-size: 13px;
            }

            /* Mobile regional pages: the 4th network button needs the tech
               dropdown's space, so the settings gear replaces it there (tech
               switching moves into the settings modal). Pages with just the
               big 3 keep the one-tap tech dropdown — both don't fit. */
            .carrier-selector.has-regional .carrier-selector-separator,
            .carrier-selector.has-regional .carrier-selector-tech-filter {
                display: none;
            }

            .carrier-selector.has-regional .carrier-selector-gear {
                display: inline-flex;
            }

            /* With 4 network buttons + gear, the row needs tighter spacing to
               clear ~360px screens. */
            .carrier-selector.has-regional .carrier-buttons {
                gap: 8px;
            }

            .carrier-selector.has-regional .carrier-btn {
                padding: 7px 10px;
            }

            /* Mobile: Stack disclaimer row into 2 rows using flex-wrap */
            .carrier-selector-disclaimer-row {
                width: 100%;
                gap: 8px;
                justify-content: center;
                align-items: center;
                flex-wrap: wrap;
            }
            
            /* Hide legend on mobile for now */
            .carrier-selector-legend {
                display: none;
            }
            
            /* Hide legend and its separator on mobile */
            .carrier-selector-legend,
            .carrier-selector-disclaimer-separator.legend-separator {
                display: none;
            }
            
            .carrier-selector-disclaimer {
                font-size: 10px;
            }
            
            .carrier-selector-disclaimer-separator {
                font-size: 10px;
            }
            
            .carrier-selector-map-info-link {
                font-size: 10px;
            }
            
            .geocoder-modal {
                padding-top: 10vh;
            }
            
            .geocoder-modal-content {
                width: 95%;
                padding: 20px;
            }
            
            .loading-container {
                padding: 14px 20px;
                max-width: 85%;
            }
            
            .loading-spinner-wrapper {
                width: 40px;
                height: 40px;
            }
            
            .loading-spinner {
                width: 26px;
                height: 26px;
            }
            
            .loading-circle {
                border-width: 2.5px;
            }
            
            .loading-text {
                font-size: 15px;
            }
            
            .loading-secondary-text {
                font-size: 12px;
            }
            
            .legend-gradient span {
                font-size: 11px;
            }
            
            .legend-bar {
                width: 100px;
                height: 18px;
            }
            
            /* Provider CTA bar mobile styles */
            .provider-cta-bar {
                padding-top: 3px;
                padding-bottom: 5px;
                padding-left: 16px;
                padding-right: 16px;
                gap: 2px;
                flex-direction: column;
                align-items: center;
            }
            
            .provider-cta-content {
                width: 100%;
                text-align: center;
            }
            
            .provider-cta-description {
                font-size: 14px;
                line-height: 1.3;
                margin: 0;
            }
            
            .provider-cta-button {
                padding-top: 6px;
                padding-bottom: 6px;
                padding-left: 16px;
                padding-right: 16px;
                font-size: 14px;
                width: auto;
                min-width: 80%;
                max-width: 94%;
                justify-content: center;
            }
            
            .tmobile-bar-logo {
                display: none;
            }
            
            .desktop-only-text {
                display: none !important;
            }
            
            .mobile-only-text {
                display: inline !important;
            }
            
            .mobile-sponsored-tag {
                display: inline-block !important;
                font-size: 10px;
                color: inherit;
                font-weight: 400;
                margin-left: 6px;
            }
            
            .mobile-sponsor-bullet {
                color: inherit;
                padding: 0 4px 0 0;
                position: relative;
                top: -1px;
            }
            
            .desktop-sponsored-tag {
                display: none !important;
            }
            
            .content-section {
                padding: 40px 16px;
            }
            
            .content-section h1 {
                font-size: 26px;
            }
            
            .content-section h2 {
                font-size: 20px;
            }
            
            .content-section blockquote {
                margin: 20px 0;
                padding: 12px 16px;
                font-size: 15px;
            }
            
            #initial-loading-context {
                font-size: 22px;
                margin-bottom: 35px;
            }
            
            #initial-loading-context::after {
                width: 50px;
                bottom: -15px;
            }
            
        }
        
        /* Desktop Optimizations */
        @media (min-width: 769px) {
            .provider-cta-bar {
                /* Keep default flex row layout on desktop */
            }
        }
        
        /* Prevent page scroll class - apply to elements that should block page scrolling when interacted with */
        .prevent-page-scroll {
            /* This class is detected by JavaScript to add scroll prevention */
        }
        
