From 401b6a7bcf0e4f93f4605d77a35325b8211288ba Mon Sep 17 00:00:00 2001
From: Ariel Costas Guerrero <ariel@costas.dev>
Date: Fri, 12 Dec 2025 10:36:45 +0100
Subject: fix: enhance route matching logic and improve CSS layout for
 consolidated circulation card

---
 .../Stops/ConsolidatedCirculationCard.tsx          | 44 ++++++++++++----------
 1 file changed, 24 insertions(+), 20 deletions(-)

(limited to 'src/frontend/app/components/Stops/ConsolidatedCirculationCard.tsx')

diff --git a/src/frontend/app/components/Stops/ConsolidatedCirculationCard.tsx b/src/frontend/app/components/Stops/ConsolidatedCirculationCard.tsx
index 425cf7b..679345f 100644
--- a/src/frontend/app/components/Stops/ConsolidatedCirculationCard.tsx
+++ b/src/frontend/app/components/Stops/ConsolidatedCirculationCard.tsx
@@ -250,28 +250,32 @@ export const ConsolidatedCirculationCard: React.FC<
       });
     }
 
-    if (estimate.currentPosition) {
-      if (estimate.isPreviousTrip) {
-        chips.push({ label: t("estimates.previous_trip"), kind: "gps" });
-      } else {
-        chips.push({ label: t("estimates.bus_gps_position"), kind: "gps" });
+    if (!reduced) {
+      if (estimate.currentPosition) {
+        if (estimate.isPreviousTrip) {
+          chips.push({ label: t("estimates.previous_trip"), kind: "gps" });
+        } else {
+          chips.push({ label: t("estimates.bus_gps_position"), kind: "gps" });
+        }
       }
-    }
-
-    if (timeClass === "time-delayed") {
-      chips.push({
-        label: reduced ? "!" : t("estimates.low_accuracy"),
-        tone: "warning",
-        kind: "warning",
-      });
-    }
 
-    if (timeClass === "time-scheduled") {
-      chips.push({
-        label: reduced ? "⧗" : t("estimates.no_realtime"),
-        tone: "warning",
-        kind: "warning",
-      });
+      if (driver !== "renfe") {
+        if (timeClass === "time-delayed") {
+          chips.push({
+            label: reduced ? "!" : t("estimates.low_accuracy"),
+            tone: "warning",
+            kind: "warning",
+          });
+        }
+
+        if (timeClass === "time-scheduled") {
+          chips.push({
+            label: reduced ? "⧗" : t("estimates.no_realtime"),
+            tone: "warning",
+            kind: "warning",
+          });
+        }
+      }
     }
 
     return chips;
-- 
cgit v1.3

