+
+
-
-
directions_bus_filled
-
{{ t('shuttle.noShuttles') }}
+
+
directions_bus_filled
+
{{ t('shuttle.noShuttles') }}
+
@@ -180,93 +195,104 @@ onUnmounted(() => {
padding-bottom: 2rem;
}
-/* FILTROS CONSISTENTES */
-.filters-container {
- padding: 0 1rem 1.5rem;
-}
-
-.filter-card {
- border-radius: 1rem;
- padding: 0.75rem 1rem;
- border: 1px solid var(--border-color);
- background: var(--card-bg);
- box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
-}
-
-.selectors-side {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 0.5rem;
-}
-
-.select-group-premium {
- display: flex;
- align-items: center;
- gap: 0.5rem;
- background: var(--bg-primary);
- border: 1px solid var(--border-color);
- border-radius: 0.75rem;
- padding: 0.5rem 0.75rem;
- transition: all 0.3s ease;
-}
-
-.select-group-premium:focus-within {
- border-color: var(--active-color);
-}
-
-.group-content {
- flex: 1;
+/* FILTERS */
+.filters-wrap {
+ padding: 0 1rem 1rem;
display: flex;
flex-direction: column;
+ gap: 0.875rem;
}
-.group-content label {
- font-size: 0.65rem;
+.filter-section {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+}
+
+.filter-label {
+ font-size: 0.75rem;
font-weight: 800;
text-transform: uppercase;
+ letter-spacing: 0.06em;
color: var(--text-secondary);
- margin-bottom: 0.125rem;
}
-.group-content select {
- background: transparent;
- border: none;
- color: var(--text-primary);
- font-weight: 700;
- font-size: 0.9375rem;
- outline: none;
- width: 100%;
-}
-
-/* GRID Y CARDS PREMIUM */
+/* GRID — single column on mobile, 2-col on tablet, 3-col on desktop */
.shuttles-grid {
display: grid;
- grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
- gap: 1.5rem;
- padding: 0 1rem;
+ grid-template-columns: 1fr;
+ gap: 1rem;
+ padding: 0.5rem 1rem 1.5rem;
}
-.shuttle-card-premium {
- border-radius: 1.5rem;
+@media (min-width: 640px) {
+ .shuttles-grid {
+ grid-template-columns: repeat(2, 1fr);
+ gap: 1.25rem;
+ }
+}
+
+@media (min-width: 1024px) {
+ .shuttles-grid {
+ grid-template-columns: repeat(3, 1fr);
+ gap: 1.5rem;
+ }
+}
+
+/* CARD — horizontal on mobile, vertical on tablet+ */
+.shuttle-card {
+ border-radius: 1.25rem;
overflow: hidden;
border: 1px solid var(--border-color);
background: var(--card-bg);
- transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
+ transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
cursor: pointer;
+ /* Horizontal layout on mobile */
display: flex;
- flex-direction: column;
+ flex-direction: row;
}
-.shuttle-card-premium:hover {
- transform: translateY(-8px);
- border-color: var(--active-color);
- box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
+.shuttle-card:focus-visible {
+ outline: 2px solid var(--active-color);
+ outline-offset: 2px;
}
+@media (min-width: 480px) {
+ /* Vertical card layout on larger screens */
+ .shuttle-card {
+ flex-direction: column;
+ }
+}
+
+@media (hover: hover) {
+ .shuttle-card:hover {
+ transform: translateY(-5px);
+ border-color: var(--active-color);
+ box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
+ }
+
+ .shuttle-card:hover .view-details-btn {
+ background: var(--active-color);
+ color: #101820;
+ border-color: var(--active-color);
+ transform: rotate(-45deg);
+ }
+}
+
+/* Image: small strip on mobile, full-width on larger */
.card-image-wrap {
position: relative;
- height: 180px;
- width: 100%;
+ width: 100px;
+ min-height: 120px;
+ flex-shrink: 0;
+}
+
+@media (min-width: 480px) {
+ .card-image-wrap {
+ width: 100%;
+ min-height: unset;
+ height: 170px;
+ }
}
.shuttle-img {
@@ -277,71 +303,101 @@ onUnmounted(() => {
.company-tag {
position: absolute;
- top: 1rem;
- left: 1rem;
+ top: 0.75rem;
+ left: 0.75rem;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(8px);
- padding: 0.375rem 0.75rem;
- border-radius: 0.75rem;
+ padding: 0.25rem 0.625rem;
+ border-radius: 0.625rem;
color: #fff;
- font-size: 0.75rem;
+ font-size: 0.7rem;
font-weight: 700;
display: flex;
align-items: center;
- gap: 0.5rem;
+ gap: 0.375rem;
border: 1px solid rgba(255, 255, 255, 0.2);
+ /* Hide on mobile to save space */
+ display: none;
}
-.card-body-premium {
- padding: 1.25rem;
+@media (min-width: 480px) {
+ .company-tag {
+ display: flex;
+ }
+}
+
+.card-body {
+ padding: 0.875rem;
display: flex;
flex-direction: column;
- gap: 1rem;
+ gap: 0.625rem;
+ flex: 1;
+ min-width: 0;
}
-.route-main {
+@media (min-width: 480px) {
+ .card-body {
+ padding: 1.125rem;
+ gap: 0.875rem;
+ }
+}
+
+.route-header {
display: flex;
align-items: center;
- gap: 0.75rem;
+ gap: 0.5rem;
flex-wrap: wrap;
}
.location-name {
- font-size: 1.125rem;
+ font-size: 0.9375rem;
font-weight: 800;
color: var(--text-primary);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ max-width: 80px;
+}
+
+@media (min-width: 480px) {
+ .location-name {
+ font-size: 1.0625rem;
+ max-width: none;
+ }
}
.separator-icon {
color: var(--active-color);
- font-size: 1.25rem;
+ font-size: 1.125rem;
+ flex-shrink: 0;
}
.card-meta {
display: flex;
- gap: 1rem;
+ flex-wrap: wrap;
+ gap: 0.5rem;
}
.meta-tag {
display: flex;
align-items: center;
- gap: 0.375rem;
+ gap: 0.25rem;
color: var(--text-secondary);
- font-size: 0.875rem;
+ font-size: 0.75rem;
font-weight: 600;
}
.meta-tag .material-icons {
- font-size: 1.125rem;
+ font-size: 1rem;
color: var(--active-color);
}
-.card-footer-premium {
- margin-top: 0.5rem;
+.card-footer {
+ margin-top: auto;
display: flex;
justify-content: space-between;
align-items: center;
- padding-top: 1rem;
+ padding-top: 0.625rem;
border-top: 1px solid var(--border-color);
}
@@ -351,21 +407,27 @@ onUnmounted(() => {
}
.price-label {
- font-size: 0.65rem;
+ font-size: 0.6875rem;
font-weight: 700;
text-transform: uppercase;
color: var(--text-secondary);
}
.price-val {
- font-size: 1.5rem;
+ font-size: 1.375rem;
font-weight: 900;
color: var(--active-color);
}
+@media (min-width: 480px) {
+ .price-val {
+ font-size: 1.5rem;
+ }
+}
+
.view-details-btn {
- width: 44px;
- height: 44px;
+ width: 40px;
+ height: 40px;
border-radius: 50%;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
@@ -373,17 +435,11 @@ onUnmounted(() => {
display: flex;
align-items: center;
justify-content: center;
- transition: all 0.3s ease;
+ transition: all 0.25s ease;
+ flex-shrink: 0;
}
-.shuttle-card-premium:hover .view-details-btn {
- background: var(--active-color);
- color: #101820;
- border-color: var(--active-color);
- transform: rotate(-45deg);
-}
-
-/* ESTADOS */
+/* STATES */
.state-container {
display: flex;
flex-direction: column;
@@ -393,15 +449,12 @@ onUnmounted(() => {
text-align: center;
}
-.spin {
- animation: spin 1s infinite linear;
+.state-icon {
font-size: 3rem;
- color: var(--active-color);
}
-@keyframes spin {
- from { transform: rotate(0deg); }
- to { transform: rotate(360deg); }
+.state-icon--error {
+ color: #ef4444;
}
.retry-btn {
@@ -415,21 +468,62 @@ onUnmounted(() => {
border-radius: 99px;
font-weight: 800;
cursor: pointer;
- transition: all 0.3s ease;
+ transition: transform 0.15s ease;
+ min-height: 44px;
+}
+
+.retry-btn:active {
+ transform: scale(0.97);
}
.empty-state {
- grid-column-start: 1;
- grid-column-end: -1;
+ grid-column: 1 / -1;
text-align: center;
- padding: 4rem 2rem;
+ padding: 3.5rem 2rem;
color: var(--text-secondary);
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 1rem;
}
-.empty-state .material-icons {
- font-size: 4rem;
- margin-bottom: 1rem;
- opacity: 0.5;
+.empty-icon {
+ font-size: 3.5rem;
+ opacity: 0.4;
}
+.empty-title {
+ font-size: 1rem;
+ font-weight: 600;
+ margin: 0;
+}
+
+.clear-filters-btn {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.5rem;
+ padding: 0.625rem 1.25rem;
+ background: var(--bg-secondary);
+ border: 1.5px solid var(--border-color);
+ border-radius: 99px;
+ font-weight: 700;
+ font-size: 0.875rem;
+ color: var(--text-primary);
+ cursor: pointer;
+ transition: border-color 0.18s ease;
+ min-height: 44px;
+}
+
+.clear-filters-btn:hover {
+ border-color: var(--active-color);
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .shuttle-card,
+ .view-details-btn,
+ .retry-btn,
+ .clear-filters-btn {
+ transition: none;
+ }
+}
diff --git a/frontend/tsconfig.app.json b/frontend/tsconfig.app.json
index 1bbebb0..c3a3ef5 100644
--- a/frontend/tsconfig.app.json
+++ b/frontend/tsconfig.app.json
@@ -2,7 +2,7 @@
"extends": "@vue/tsconfig/tsconfig.dom.json",
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
- "types": ["vite/client", "google.maps"],
+ "types": ["vite/client", "google.maps", "vite-plugin-pwa/client"],
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
@@ -14,7 +14,7 @@
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true,
- "noUncheckedSideEffectImports": true
+ "noUncheckedSideEffectImports": false
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"]
}