feat(UI): actualización de colores de ruta a amarillo y fix navegación transporte
This commit is contained in:
219
frontend/src/views/transporte/ShuttleDetalle.vue
Normal file
219
frontend/src/views/transporte/ShuttleDetalle.vue
Normal file
@ -0,0 +1,219 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { supabase } from '@/supabase'
|
||||
import type { Shuttle } from '@/types'
|
||||
import { getImageUrl } from '@/utils/imageUrl'
|
||||
import { analyticsService } from '@/services/analyticsService'
|
||||
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
const shuttle = ref<Shuttle | null>(null)
|
||||
const cargando = ref(true)
|
||||
const error = ref<string | null>(null)
|
||||
|
||||
onMounted(async () => {
|
||||
try {
|
||||
cargando.value = true
|
||||
const shuttleId = route.params.id as string
|
||||
|
||||
// In a real app we might just get from the store, but directly from Supabase is safe to ensure it always works with Deep Links!
|
||||
const { data, error: sbError } = await supabase
|
||||
.from('shuttles')
|
||||
.select('*')
|
||||
.eq('id', shuttleId)
|
||||
.single()
|
||||
|
||||
if (sbError) throw sbError
|
||||
shuttle.value = data
|
||||
} catch (e: any) {
|
||||
error.value = 'No se pudo cargar la información del viaje'
|
||||
console.error('SIBU | Error cargando shuttle:', e)
|
||||
} finally {
|
||||
cargando.value = false
|
||||
}
|
||||
})
|
||||
|
||||
const parsePrice = (priceVal?: number | string | null): string => {
|
||||
if (!priceVal) return '0.00';
|
||||
const num = typeof priceVal === 'string' ? parseFloat(priceVal) : priceVal;
|
||||
return Number.isNaN(num) ? '0.00' : num.toFixed(2);
|
||||
};
|
||||
|
||||
const volver = () => {
|
||||
// Leer la ruta padre desde el meta de la ruta actual
|
||||
const rutaPadre = route.meta.padre as string | undefined
|
||||
|
||||
if (rutaPadre) {
|
||||
router.push({ name: rutaPadre })
|
||||
} else {
|
||||
// Fallback seguro
|
||||
router.push('/transporte/viajes-turisticos')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="shuttle-detalle-container bg-surface pb-24 min-h-screen relative">
|
||||
<!-- Header con botón volver -->
|
||||
<div class="sticky top-0 z-10 bg-surface border-b border-border flex items-center gap-3 px-4 py-3 shadow-sm" style="padding-top: max(env(safe-area-inset-top), 12px);">
|
||||
<button @click="volver" class="p-2 rounded-full hover:bg-hover flex items-center justify-center transition">
|
||||
<span class="material-icons text-text-primary">arrow_back</span>
|
||||
</button>
|
||||
<h1 class="font-bold text-text-primary text-lg truncate flex-1">
|
||||
{{ shuttle?.company_name || 'Detalle del viaje' }}
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<!-- Loading -->
|
||||
<div v-if="cargando" class="flex flex-col justify-center items-center h-64 gap-3">
|
||||
<span class="material-icons spin text-4xl" style="color: var(--active-color)">refresh</span>
|
||||
<p class="text-text-secondary font-medium animate-pulse">Cargando...</p>
|
||||
</div>
|
||||
|
||||
<!-- Error -->
|
||||
<div v-else-if="error" class="flex flex-col items-center justify-center h-64 px-6 text-center">
|
||||
<span class="material-icons text-red-500 text-5xl mb-3">error_outline</span>
|
||||
<p class="text-red-500 font-medium">{{ error }}</p>
|
||||
<button @click="volver" class="mt-6 px-6 py-2 bg-text-primary text-surface font-bold rounded-full shadow hover:opacity-90 transition">
|
||||
Volver
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Contenido completo -->
|
||||
<div v-else-if="shuttle" class="px-4 py-4 space-y-4 max-w-lg mx-auto animate-fade-in">
|
||||
<!-- Imagen -->
|
||||
<div v-if="shuttle.image_url" class="relative w-full h-56 md:h-64 rounded-2xl overflow-hidden shadow-sm">
|
||||
<img
|
||||
:src="getImageUrl(shuttle.image_url, 'shuttle')"
|
||||
:alt="shuttle.company_name"
|
||||
class="w-full h-full object-cover"
|
||||
@error="(e) => (e.target as HTMLImageElement).src = getImageUrl(null, 'shuttle')"
|
||||
/>
|
||||
<div class="absolute bottom-3 left-3 bg-surface/90 backdrop-blur-sm px-3 py-1 rounded-full text-sm font-bold shadow-sm flex items-center gap-1">
|
||||
<span class="material-icons text-sm" style="color: var(--active-color)">directions_bus</span>
|
||||
{{ shuttle.vehicle_type }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Rutas Origen - Destino prominente -->
|
||||
<div class="bg-surface rounded-2xl p-5 shadow-sm space-y-3 border border-border">
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="flex flex-col flex-1">
|
||||
<span class="text-xs text-text-tertiary font-semibold mb-1 uppercase tracking-wider">Origen</span>
|
||||
<span class="font-bold text-text-primary text-lg leading-tight break-words">
|
||||
{{ shuttle.origin }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col items-center px-4 shrink-0">
|
||||
<span class="text-xs text-text-secondary font-bold mb-1">{{ shuttle.estimated_duration }}</span>
|
||||
<div class="w-16 border-t-2 border-dashed border-border relative my-1">
|
||||
<span class="material-icons absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-text-secondary bg-surface px-1 text-sm">east</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col flex-1 text-right">
|
||||
<span class="text-xs text-text-tertiary font-semibold mb-1 uppercase tracking-wider">Destino</span>
|
||||
<span class="font-bold text-text-primary text-lg leading-tight break-words">
|
||||
{{ shuttle.destination }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Info principal -->
|
||||
<div class="bg-surface rounded-2xl p-5 shadow-sm space-y-4 border border-border">
|
||||
<div>
|
||||
<h2 class="text-xl font-bold text-text-primary">{{ shuttle.company_name }}</h2>
|
||||
<p class="text-text-secondary text-sm mt-1 leading-relaxed" v-if="shuttle.description" style="white-space: pre-wrap;">{{ shuttle.description }}</p>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-2 gap-4 pt-4 border-t border-border">
|
||||
<div class="flex flex-col gap-1">
|
||||
<span class="text-xs text-text-tertiary uppercase tracking-wider font-semibold flex items-center gap-1"><span class="material-icons text-sm">schedule</span> Hora de salida</span>
|
||||
<span class="font-semibold text-text-primary bg-bg-secondary p-2 rounded-lg text-sm text-center border border-border">
|
||||
{{ shuttle.departure_times }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="flex flex-col gap-1">
|
||||
<span class="text-xs text-text-tertiary uppercase tracking-wider font-semibold flex items-center gap-1"><span class="material-icons text-sm">swap_horiz</span> Tipo de viaje</span>
|
||||
<span class="font-semibold text-text-primary bg-bg-secondary p-2 rounded-lg text-sm text-center border border-border capitalize">
|
||||
{{ shuttle.trip_type.replace('_', ' ') }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="flex flex-col gap-1" v-if="shuttle.english_speaking">
|
||||
<span class="text-xs text-text-tertiary uppercase tracking-wider font-semibold flex items-center gap-1"><span class="material-icons text-sm">g_translate</span> Idiomas</span>
|
||||
<span class="font-semibold text-text-primary bg-bg-secondary p-2 rounded-lg text-sm text-center border border-border">
|
||||
Español · English
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Precio -->
|
||||
<div class="rounded-2xl p-6 shadow-sm flex items-center justify-between" style="background-color: var(--active-color); color: #101820;">
|
||||
<div class="text-left">
|
||||
<p class="text-sm font-semibold opacity-90 mb-1">Precio por pasajero</p>
|
||||
<div class="flex items-baseline gap-1">
|
||||
<span class="text-lg font-bold opacity-80">$</span>
|
||||
<span class="text-4xl font-black tracking-tight">{{ parsePrice(shuttle.price_per_person) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-3 rounded-xl bg-black/10 backdrop-blur-sm" v-if="shuttle.price_private_trip">
|
||||
<span class="text-xs font-bold uppercase tracking-wider opacity-90 block mb-1">Privado</span>
|
||||
<span class="font-black text-lg">${{ parsePrice(shuttle.price_private_trip) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Contacto -->
|
||||
<div class="bg-surface rounded-2xl p-5 shadow-sm space-y-4 border border-border mb-8">
|
||||
<div>
|
||||
<h3 class="font-bold text-text-primary text-lg">Reserva e Información</h3>
|
||||
<p class="text-sm text-text-secondary mt-1">Contacta directamente al operador para confirmar disponibilidad.</p>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col gap-3">
|
||||
<a v-if="shuttle.contact_whatsapp"
|
||||
:href="`https://wa.me/${shuttle.contact_whatsapp.replace(/\+/g, '')}?text=Hola,%20me%20gustaría%20información%20sobre%20el%20shuttle%20de%20${shuttle.origin}%20a%20${shuttle.destination}`"
|
||||
target="_blank"
|
||||
class="flex justify-center items-center gap-2 p-3.5 bg-[#25D366] text-white rounded-xl font-bold hover:opacity-90 transition active:scale-95"
|
||||
@click="analyticsService.logEvent({ event_name: 'shuttle_contact', item_id: shuttle.id, properties: { action: 'whatsapp' } })"
|
||||
>
|
||||
<span class="material-icons">chat</span>
|
||||
Reservar por WhatsApp
|
||||
</a>
|
||||
|
||||
<a v-if="shuttle.phone_number"
|
||||
:href="`tel:${shuttle.phone_number}`"
|
||||
class="flex justify-center items-center gap-2 p-3.5 bg-bg-secondary text-text-primary rounded-xl font-bold hover:bg-hover transition active:scale-95 border border-border"
|
||||
@click="analyticsService.logEvent({ event_name: 'shuttle_contact', item_id: shuttle.id, properties: { action: 'call' } })"
|
||||
>
|
||||
<span class="material-icons">phone_in_talk</span>
|
||||
Llamar al Operador
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.animate-fade-in {
|
||||
animation: fadeIn 0.3s ease-out forwards;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; transform: translateY(10px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
.spin {
|
||||
animation: spin 1s infinite linear;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
</style>
|
||||
917
frontend/src/views/transporte/TaxisLocales.vue
Normal file
917
frontend/src/views/transporte/TaxisLocales.vue
Normal file
@ -0,0 +1,917 @@
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref, computed } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useTaxiStore } from '@/stores/taxi'
|
||||
import { analyticsService } from '@/services/analyticsService'
|
||||
import type { Taxi } from '@/types'
|
||||
import FavoriteButton from '@/components/FavoriteButton.vue'
|
||||
import { getImageUrl } from '@/utils/imageUrl'
|
||||
|
||||
const { t } = useI18n()
|
||||
const taxiStore = useTaxiStore()
|
||||
const router = useRouter()
|
||||
|
||||
const selectedZone = ref('all')
|
||||
const selectedShift = ref('all')
|
||||
const onlyEnglish = ref(false)
|
||||
|
||||
const corregimientos = ['all', 'Boquete', 'David - Boquete', 'Boquete - David', 'Aeropuerto - Boquete']
|
||||
const shifts = ['all', 'dia', 'tarde', 'noche']
|
||||
|
||||
onMounted(async () => {
|
||||
analyticsService.logEvent({ event_name: 'screen_view', screen_name: 'TaxisLocales' })
|
||||
if(taxiStore.taxis.length === 0) {
|
||||
await taxiStore.loadTaxis()
|
||||
}
|
||||
})
|
||||
|
||||
const filteredTaxis = computed(() => {
|
||||
return taxiStore.taxis.filter(taxi => {
|
||||
const matchesZone = selectedZone.value === 'all' || taxi.corregimiento === selectedZone.value
|
||||
const matchesShift = selectedShift.value === 'all' || taxi.shift === selectedShift.value
|
||||
const matchesEnglish = !onlyEnglish.value || taxi.english_speaking
|
||||
return matchesZone && matchesShift && matchesEnglish
|
||||
})
|
||||
})
|
||||
|
||||
const handleCall = (taxi: Taxi) => {
|
||||
analyticsService.logEvent({
|
||||
event_name: 'taxi_click',
|
||||
item_id: taxi.owner_name,
|
||||
properties: {
|
||||
action: 'call',
|
||||
taxi_id: taxi.id,
|
||||
plate: taxi.license_plate
|
||||
}
|
||||
})
|
||||
window.location.href = `tel:${taxi.phone_number}`
|
||||
}
|
||||
|
||||
function getShiftLabel(shift: string) {
|
||||
if (shift === 'dia') return t('taxi.dayShift')
|
||||
if (shift === 'tarde') return t('taxi.afternoonShift')
|
||||
if (shift === 'noche') return t('taxi.nightShift')
|
||||
return shift
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<div class="taxis-locales">
|
||||
<div class="filters-container">
|
||||
<div class="filter-card">
|
||||
<div class="selectors-side">
|
||||
<div class="select-group">
|
||||
<span class="material-icons">location_on</span>
|
||||
<select v-model="selectedZone">
|
||||
<option value="all">{{ t('taxi.allZones') }}</option>
|
||||
<option v-for="zone in corregimientos.filter(z => z !== 'all')" :key="zone" :value="zone">{{ zone }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select-group">
|
||||
<span class="material-icons">schedule</span>
|
||||
<select v-model="selectedShift">
|
||||
<option value="all">{{ t('taxi.shift') }}</option>
|
||||
<option v-for="s in shifts.filter(x => x !== 'all')" :key="s" :value="s">{{ getShiftLabel(s) }}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="lang-toggle-side">
|
||||
<span class="lang-text">{{ t('taxi.englishLabel') }}</span>
|
||||
<label class="checkbox-container">
|
||||
<input type="checkbox" v-model="onlyEnglish">
|
||||
<span class="checkmark"></span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="taxiStore.isLoading" class="state-container">
|
||||
<span class="material-icons spin">refresh</span>
|
||||
<p>{{ t('taxi.loadingTaxis') }}</p>
|
||||
</div>
|
||||
|
||||
<div v-else-if="taxiStore.error" class="state-container">
|
||||
<span class="material-icons">error_outline</span>
|
||||
<p>{{ taxiStore.error }}</p>
|
||||
<button class="retry-btn" @click="taxiStore.loadTaxis()">
|
||||
<span class="material-icons">refresh</span>
|
||||
Reintentar
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div v-else class="taxis-grid">
|
||||
<div v-for="taxi in filteredTaxis" :key="taxi.id" v-memo="[taxi.id]" class="taxi-card-new">
|
||||
<div class="card-top">
|
||||
<div class="driver-avatar">
|
||||
<img
|
||||
:src="getImageUrl(taxi.image_url, 'taxi')"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
alt="Driver"
|
||||
@error="(e) => (e.target as HTMLImageElement).src = getImageUrl(null, 'taxi')"
|
||||
>
|
||||
</div>
|
||||
<div class="driver-info">
|
||||
<h3>{{ taxi.owner_name }}</h3>
|
||||
<div class="rating-stars">
|
||||
<span v-for="i in 5" :key="i" class="material-icons">
|
||||
{{ i <= (taxi.rating || 5) ? 'star' : 'star_border' }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fav-icon-wrapper">
|
||||
<FavoriteButton
|
||||
item-type="taxi"
|
||||
:item-id="taxi.id"
|
||||
:item-name="taxi.owner_name"
|
||||
:item-image="taxi.image_url || undefined"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-mid">
|
||||
<div class="contact-info">
|
||||
<span class="material-icons ph-icon">phone</span>
|
||||
<span class="phone-num"> {{ taxi.phone_number }} </span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-bottom">
|
||||
<button class="call-btn-main" @click="handleCall(taxi)">
|
||||
<span class="material-icons">phone_in_talk</span>
|
||||
{{ t('taxi.callNow') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="filteredTaxis.length === 0" class="empty-state">
|
||||
<span class="material-icons">no_accounts</span>
|
||||
<p>{{ t('taxi.noTaxisAvailable') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
/* Transport Hub Tabs */
|
||||
.hub-tabs {
|
||||
margin-top: 24px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.tabs-background {
|
||||
background: var(--bg-secondary);
|
||||
padding: 4px;
|
||||
border-radius: 16px;
|
||||
display: flex;
|
||||
position: relative;
|
||||
border: 1px solid var(--border-color);
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.hub-tab {
|
||||
flex: 1;
|
||||
padding: 12px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--text-secondary);
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
cursor: pointer;
|
||||
z-index: 2;
|
||||
transition: color 0.3s;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.hub-tab.active {
|
||||
color: #101820 !important;
|
||||
}
|
||||
|
||||
.hub-tab .material-icons {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.tab-slider {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
bottom: 4px;
|
||||
width: calc(50% - 6px);
|
||||
background: #FEE715;
|
||||
border-radius: 12px;
|
||||
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
z-index: 1;
|
||||
box-shadow: 0 4px 15px rgba(254, 231, 21, 0.4);
|
||||
}
|
||||
.retry-btn {
|
||||
margin-top: 1rem;
|
||||
padding: 10px 20px;
|
||||
background: var(--active-color);
|
||||
color: #101820;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
.retry-btn:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
.retry-btn .material-icons {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
/* =============================================
|
||||
SHUTTLE CARDS — DISEÑO PREMIUM CON FOTO
|
||||
============================================= */
|
||||
|
||||
/* Backdrop modal al expandir */
|
||||
.shuttle-modal-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.65);
|
||||
backdrop-filter: blur(6px);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
z-index: 50;
|
||||
animation: fadeIn 0.25s ease;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
/* Grid de cards */
|
||||
.shuttles-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||||
gap: 16px;
|
||||
padding: 20px 16px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* ---- La tarjeta base ---- */
|
||||
.shuttle-card {
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgba(255,255,255,0.12);
|
||||
position: relative;
|
||||
min-height: 170px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(135deg, #0d1b2a 0%, #1a2a40 50%, #101820 100%);
|
||||
}
|
||||
|
||||
.shuttle-card-bg {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
/* Overlay oscuro base (compacto) */
|
||||
.shuttle-card::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(
|
||||
to top,
|
||||
rgba(0, 0, 0, 0.93) 0%,
|
||||
rgba(0, 0, 0, 0.65) 55%,
|
||||
rgba(0, 0, 0, 0.30) 100%
|
||||
);
|
||||
z-index: 1;
|
||||
transition: background 0.4s ease;
|
||||
}
|
||||
|
||||
/* Cuando está expandida, reforzar el overlay inferior */
|
||||
.shuttle-card.expanded {
|
||||
border-color: #FEE715;
|
||||
box-shadow: 0 0 0 2px #FEE715, 0 24px 50px rgba(0, 0, 0, 0.7);
|
||||
z-index: 60;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.shuttle-card.expanded::before {
|
||||
background: linear-gradient(
|
||||
to top,
|
||||
rgba(0, 0, 0, 0.97) 0%,
|
||||
rgba(0, 0, 0, 0.80) 45%,
|
||||
rgba(0, 0, 0, 0.40) 100%
|
||||
);
|
||||
}
|
||||
|
||||
/* Todos los hijos van sobre el overlay */
|
||||
.shuttle-main-info,
|
||||
.shuttle-details {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
padding: 18px 20px;
|
||||
}
|
||||
|
||||
.shuttle-main-info {
|
||||
padding-bottom: 14px;
|
||||
}
|
||||
|
||||
/* Fila superior: badge empresa + precio */
|
||||
.shuttle-header-mini {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.company-badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
background: rgba(0, 0, 0, 0.60);
|
||||
color: #FEE715;
|
||||
padding: 5px 11px;
|
||||
border-radius: 10px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 800;
|
||||
border: 1px solid rgba(254, 231, 21, 0.45);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
text-shadow: 0 1px 4px rgba(0,0,0,0.8);
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.company-badge .material-icons {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.price-pill {
|
||||
background: #FEE715;
|
||||
color: #101820;
|
||||
padding: 5px 11px;
|
||||
border-radius: 10px;
|
||||
font-weight: 900;
|
||||
font-size: 1rem;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 1px;
|
||||
box-shadow: 0 4px 12px rgba(254, 231, 21, 0.35);
|
||||
}
|
||||
|
||||
.price-pill .currency {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.price-pill .amount {
|
||||
font-size: 1rem;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.price-pill-label {
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
margin-left: 1px;
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
/* Ruta origen → destino */
|
||||
.shuttle-route-compact {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 900;
|
||||
color: #ffffff;
|
||||
text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.6);
|
||||
margin-bottom: 14px;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.route-text {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.route-arrow {
|
||||
color: #FEE715;
|
||||
font-size: 20px;
|
||||
flex-shrink: 0;
|
||||
filter: drop-shadow(0 0 4px rgba(254,231,21,0.6));
|
||||
}
|
||||
|
||||
/* Fila inferior: tipo vehículo + expand arrow */
|
||||
.shuttle-tags {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.vehicle-tag-mini {
|
||||
padding: 5px 10px;
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
backdrop-filter: blur(6px);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
border-radius: 8px;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: #ffffff;
|
||||
text-shadow: 0 1px 4px rgba(0,0,0,0.8);
|
||||
border: 1px solid rgba(255, 255, 255, 0.20);
|
||||
}
|
||||
|
||||
.vehicle-tag-mini .material-icons {
|
||||
font-size: 15px;
|
||||
color: #FEE715;
|
||||
}
|
||||
|
||||
.expand-indicator {
|
||||
color: #FEE715;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
filter: drop-shadow(0 0 4px rgba(254,231,21,0.5));
|
||||
}
|
||||
|
||||
/* =============================================
|
||||
CONTENIDO EXPANDIDO
|
||||
============================================= */
|
||||
.shuttle-details {
|
||||
padding-top: 0;
|
||||
animation: slideDown 0.3s ease-out;
|
||||
}
|
||||
|
||||
@keyframes slideDown {
|
||||
from { opacity: 0; transform: translateY(-8px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
/* Separador dashed */
|
||||
.shuttle-separator {
|
||||
height: 1px;
|
||||
background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
|
||||
margin: 0 20px 16px;
|
||||
}
|
||||
|
||||
.shuttle-body {
|
||||
padding: 0 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.info-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.info-row .material-icons {
|
||||
color: #FEE715;
|
||||
font-size: 22px;
|
||||
flex-shrink: 0;
|
||||
filter: drop-shadow(0 0 4px rgba(254,231,21,0.4));
|
||||
}
|
||||
|
||||
.info-row .label {
|
||||
font-size: 0.65rem;
|
||||
color: rgba(255, 255, 255, 0.55);
|
||||
margin: 0;
|
||||
text-transform: uppercase;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
.info-row .value {
|
||||
font-size: 0.95rem;
|
||||
color: #ffffff;
|
||||
margin: 2px 0 0;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 1px 6px rgba(0,0,0,0.9);
|
||||
}
|
||||
|
||||
/* ---- Bloque de precios ---- */
|
||||
.price-block {
|
||||
padding: 14px 20px;
|
||||
background: rgba(0, 0, 0, 0.40);
|
||||
border-top: 1px solid rgba(255,255,255,0.08);
|
||||
border-bottom: 1px solid rgba(255,255,255,0.08);
|
||||
margin-bottom: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.price-row-main {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.price-amount-big {
|
||||
font-size: 2rem;
|
||||
font-weight: 900;
|
||||
color: #FEE715;
|
||||
text-shadow: 0 0 20px rgba(254,231,21,0.4), 0 2px 8px rgba(0,0,0,0.9);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.price-label-big {
|
||||
font-size: 0.85rem;
|
||||
color: rgba(255,255,255,0.75);
|
||||
font-weight: 600;
|
||||
text-shadow: 0 1px 4px rgba(0,0,0,0.8);
|
||||
}
|
||||
|
||||
.price-row-secondary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.price-icon-secondary {
|
||||
font-size: 16px;
|
||||
color: rgba(255,255,255,0.55);
|
||||
}
|
||||
|
||||
.price-amount-secondary {
|
||||
font-size: 1rem;
|
||||
font-weight: 800;
|
||||
color: rgba(255,255,255,0.85);
|
||||
text-shadow: 0 1px 4px rgba(0,0,0,0.8);
|
||||
}
|
||||
|
||||
.price-label-secondary {
|
||||
font-size: 0.78rem;
|
||||
color: rgba(255,255,255,0.55);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ---- Botones de contacto ---- */
|
||||
.contact-buttons {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
padding: 0 20px 20px;
|
||||
}
|
||||
|
||||
.contact-btn {
|
||||
flex: 1;
|
||||
height: 52px;
|
||||
border-radius: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.btn-call {
|
||||
background: rgba(255, 255, 255, 0.10);
|
||||
color: #ffffff;
|
||||
border: 1.5px solid rgba(255, 255, 255, 0.30);
|
||||
backdrop-filter: blur(6px);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
text-shadow: 0 1px 4px rgba(0,0,0,0.6);
|
||||
}
|
||||
|
||||
.btn-call:hover {
|
||||
background: rgba(255, 255, 255, 0.18);
|
||||
border-color: rgba(255, 255, 255, 0.50);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.btn-call .material-icons { font-size: 20px; }
|
||||
|
||||
.btn-whatsapp {
|
||||
background: #25d366;
|
||||
color: #ffffff;
|
||||
box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
|
||||
}
|
||||
|
||||
.btn-whatsapp:hover {
|
||||
background: #1ebe5a;
|
||||
box-shadow: 0 8px 24px rgba(37, 211, 102, 0.50);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.btn-whatsapp .material-icons { font-size: 20px; }
|
||||
|
||||
/* Original Styles */
|
||||
.taxi-view {
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
padding: 0 0 150px;
|
||||
}
|
||||
|
||||
/* Tarjetas claras y elegantes */
|
||||
.filter-card,
|
||||
.taxi-card-new {
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.header-main {
|
||||
padding: 24px 16px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.brand-title {
|
||||
color: var(--header-text);
|
||||
font-size: 1.5rem;
|
||||
font-weight: 800;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.filters-container {
|
||||
padding: 0 16px 24px;
|
||||
}
|
||||
|
||||
.filter-card {
|
||||
background: var(--card-bg);
|
||||
border-radius: 20px;
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border: 1px solid var(--border-color);
|
||||
box-shadow: 0 2px 8px var(--shadow);
|
||||
}
|
||||
|
||||
.selectors-side {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.select-group {
|
||||
background: var(--bg-secondary);
|
||||
border: 1.5px solid #fee715;
|
||||
border-radius: 12px;
|
||||
padding: 8px 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.select-group .material-icons {
|
||||
color: #fee715;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.select-group select {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--text-primary);
|
||||
width: 100%;
|
||||
font-size: 0.9rem;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.select-group select option {
|
||||
background: var(--card-bg);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.lang-toggle-side {
|
||||
padding-left: 20px;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.lang-text {
|
||||
color: var(--text-primary);
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Custom Checkbox */
|
||||
.checkbox-container {
|
||||
display: block;
|
||||
position: relative;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.checkbox-container input {
|
||||
visibility: hidden;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.checkmark {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 28px;
|
||||
width: 28px;
|
||||
background-color: transparent;
|
||||
border: 2px solid #fee715;
|
||||
border-radius: 4px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.checkbox-container input:checked ~ .checkmark {
|
||||
background-color: #fee715;
|
||||
}
|
||||
|
||||
.checkmark:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.checkbox-container input:checked ~ .checkmark:after {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.checkbox-container .checkmark:after {
|
||||
left: 9px;
|
||||
top: 5px;
|
||||
width: 6px;
|
||||
height: 12px;
|
||||
border: solid #101820;
|
||||
border-width: 0 3px 3px 0;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
/* Grid & Cards */
|
||||
.taxis-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
||||
gap: 24px;
|
||||
padding: 24px 0;
|
||||
}
|
||||
|
||||
.taxi-card-new {
|
||||
background: var(--card-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
border-radius: 20px;
|
||||
padding: 16px;
|
||||
border: 1px solid var(--border-color);
|
||||
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.taxi-card-new:hover {
|
||||
transform: translateY(-8px);
|
||||
border-color: var(--active-color);
|
||||
box-shadow: 0 20px 40px rgba(0,0,0,0.4);
|
||||
}
|
||||
|
||||
.card-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.driver-avatar {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
background: var(--bg-secondary);
|
||||
border: 2px solid var(--border-color);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.driver-avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.driver-info h3 {
|
||||
margin: 0 0 2px;
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.rating-stars {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.rating-stars .material-icons {
|
||||
color: var(--active-color);
|
||||
font-size: 18px;
|
||||
filter: drop-shadow(0 0 5px rgba(254, 231, 21, 0.5));
|
||||
}
|
||||
|
||||
.fav-icon-wrapper {
|
||||
position: absolute;
|
||||
top: -4px;
|
||||
right: -4px;
|
||||
}
|
||||
|
||||
.card-mid {
|
||||
padding: 12px 16px;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.contact-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.ph-icon {
|
||||
color: var(--active-color);
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.phone-num {
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.call-btn-main {
|
||||
width: 100%;
|
||||
padding: 18px;
|
||||
background: linear-gradient(135deg, #fee715 0%, #facc15 100%);
|
||||
color: #101820;
|
||||
border: none;
|
||||
border-radius: 16px;
|
||||
font-size: 1rem;
|
||||
font-weight: 900;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 10px 20px rgba(254, 231, 21, 0.15);
|
||||
}
|
||||
|
||||
.call-btn-main:hover {
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 15px 30px rgba(254, 231, 21, 0.25);
|
||||
}
|
||||
|
||||
.state-container, .empty-state {
|
||||
padding: 100px 24px;
|
||||
text-align: center;
|
||||
background: var(--header-bg);
|
||||
border-radius: 32px;
|
||||
border: 2px dashed var(--border-color);
|
||||
}
|
||||
|
||||
.state-container .material-icons, .empty-state .material-icons {
|
||||
font-size: 64px;
|
||||
margin-bottom: 24px;
|
||||
color: var(--active-color);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.spin {
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.taxis-grid, .shuttles-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
901
frontend/src/views/transporte/ViajesTuristicos.vue
Normal file
901
frontend/src/views/transporte/ViajesTuristicos.vue
Normal file
@ -0,0 +1,901 @@
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref, computed } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useShuttleStore } from '@/stores/shuttle'
|
||||
import { analyticsService } from '@/services/analyticsService'
|
||||
import { getImageUrl } from '@/utils/imageUrl'
|
||||
|
||||
const { t } = useI18n()
|
||||
const shuttleStore = useShuttleStore()
|
||||
const router = useRouter()
|
||||
|
||||
const shuttleRouteFilter = ref('all')
|
||||
const shuttleTypeFilter = ref('all')
|
||||
const shuttleRefs = ref<Record<string, any>>({})
|
||||
|
||||
const setShuttleRef = (el: any, id: string) => {
|
||||
if (el) shuttleRefs.value[id] = el
|
||||
}
|
||||
|
||||
const shuttleRoutes = computed(() => {
|
||||
const routes = shuttleStore.shuttles.map(s => `${s.origin} - ${s.destination}`)
|
||||
return [...new Set(routes)].sort()
|
||||
})
|
||||
|
||||
const filteredShuttles = computed(() => {
|
||||
return shuttleStore.shuttles.filter(shuttle => {
|
||||
const routeName = `${shuttle.origin} - ${shuttle.destination}`
|
||||
const matchesRoute = shuttleRouteFilter.value === 'all' || routeName === shuttleRouteFilter.value
|
||||
const matchesType = shuttleTypeFilter.value === 'all' || shuttle.trip_type === shuttleTypeFilter.value
|
||||
return matchesRoute && matchesType
|
||||
})
|
||||
})
|
||||
|
||||
const verDetalle = (shuttleId: number) => {
|
||||
router.push({
|
||||
name: 'ShuttleDetalle',
|
||||
params: { id: shuttleId }
|
||||
})
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
analyticsService.logEvent({ event_name: 'screen_view', screen_name: 'ViajesTuristicos' })
|
||||
if(shuttleStore.shuttles.length === 0) {
|
||||
await shuttleStore.loadShuttles()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<template>
|
||||
<div class="viajes-turisticos">
|
||||
<div class="filters-container">
|
||||
<div class="filter-card">
|
||||
<div class="selectors-side">
|
||||
<div class="select-group">
|
||||
<span class="material-icons">route</span>
|
||||
<select v-model="shuttleRouteFilter">
|
||||
<option value="all">{{ t('shuttle.allRoutes') }}</option>
|
||||
<option v-for="route in shuttleRoutes" :key="route" :value="route">{{ route }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="select-group">
|
||||
<span class="material-icons">sync_alt</span>
|
||||
<select v-model="shuttleTypeFilter">
|
||||
<option value="all">{{ t('shuttle.tripType') }}</option>
|
||||
<option value="one_way">{{ t('shuttle.oneWay') }}</option>
|
||||
<option value="round_trip">{{ t('shuttle.roundTrip') }}</option>
|
||||
<option value="both">{{ t('shuttle.both') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="shuttleStore.isLoading" class="state-container">
|
||||
<span class="material-icons spin">refresh</span>
|
||||
<p>{{ t('taxi.loadingTaxis') }}</p>
|
||||
</div>
|
||||
|
||||
<div v-else-if="shuttleStore.error" class="state-container">
|
||||
<span class="material-icons">error_outline</span>
|
||||
<p>{{ shuttleStore.error }}</p>
|
||||
</div>
|
||||
|
||||
<div v-else class="shuttles-grid">
|
||||
<!-- OVERLAY BACKDROP when a card is expanded -->
|
||||
<div
|
||||
v-for="shuttle in filteredShuttles"
|
||||
:key="shuttle.id"
|
||||
v-memo="[shuttle.id]"
|
||||
:ref="el => setShuttleRef(el, shuttle.id)"
|
||||
class="shuttle-card"
|
||||
@click="() => {
|
||||
analyticsService.logEvent({ event_name: 'shuttle_view_detailed', item_id: shuttle.id });
|
||||
verDetalle(shuttle.id);
|
||||
}"
|
||||
>
|
||||
<img
|
||||
:src="getImageUrl(shuttle.image_url, 'shuttle')"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
class="shuttle-card-bg"
|
||||
@error="(e) => (e.target as HTMLImageElement).src = getImageUrl(null, 'shuttle')"
|
||||
/>
|
||||
<!-- Collapsed info (always visible) -->
|
||||
<div class="shuttle-main-info">
|
||||
<div class="shuttle-header-mini">
|
||||
<div class="company-badge" v-if="shuttle.company_name">
|
||||
<span class="material-icons">business</span>
|
||||
{{ shuttle.company_name }}
|
||||
</div>
|
||||
</div> <!-- Close shuttle-header-mini -->
|
||||
|
||||
<div class="shuttle-route-compact" v-if="shuttle.origin && shuttle.destination">
|
||||
<span class="route-text">{{ shuttle.origin }}</span>
|
||||
<span class="material-icons route-arrow">east</span>
|
||||
<span class="route-text">{{ shuttle.destination }}</span>
|
||||
</div>
|
||||
|
||||
<div class="shuttle-tags">
|
||||
<div class="vehicle-tag-mini">
|
||||
<span class="material-icons">directions_bus</span>
|
||||
{{ shuttle.vehicle_type }}
|
||||
</div>
|
||||
<div class="expand-indicator">
|
||||
<span class="material-icons">chevron_right</span>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- Close shuttle-main-info -->
|
||||
</div>
|
||||
|
||||
<div v-if="filteredShuttles.length === 0" class="empty-state">
|
||||
<span class="material-icons">directions_bus_filled</span>
|
||||
<p>{{ t('shuttle.noShuttles') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
/* Transport Hub Tabs */
|
||||
.hub-tabs {
|
||||
margin-top: 24px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.tabs-background {
|
||||
background: var(--bg-secondary);
|
||||
padding: 4px;
|
||||
border-radius: 16px;
|
||||
display: flex;
|
||||
position: relative;
|
||||
border: 1px solid var(--border-color);
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.hub-tab {
|
||||
flex: 1;
|
||||
padding: 12px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--text-secondary);
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
cursor: pointer;
|
||||
z-index: 2;
|
||||
transition: color 0.3s;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.hub-tab.active {
|
||||
color: #101820 !important;
|
||||
}
|
||||
|
||||
.hub-tab .material-icons {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.tab-slider {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
bottom: 4px;
|
||||
width: calc(50% - 6px);
|
||||
background: #FEE715;
|
||||
border-radius: 12px;
|
||||
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
z-index: 1;
|
||||
box-shadow: 0 4px 15px rgba(254, 231, 21, 0.4);
|
||||
}
|
||||
.retry-btn {
|
||||
margin-top: 1rem;
|
||||
padding: 10px 20px;
|
||||
background: var(--active-color);
|
||||
color: #101820;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
.retry-btn:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
.retry-btn .material-icons {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
/* =============================================
|
||||
SHUTTLE CARDS — DISEÑO PREMIUM CON FOTO
|
||||
============================================= */
|
||||
|
||||
/* Backdrop modal al expandir */
|
||||
.shuttle-modal-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.65);
|
||||
backdrop-filter: blur(6px);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
z-index: 50;
|
||||
animation: fadeIn 0.25s ease;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
/* Grid de cards */
|
||||
.shuttles-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||||
gap: 16px;
|
||||
padding: 20px 16px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* ---- La tarjeta base ---- */
|
||||
.shuttle-card {
|
||||
border-radius: 20px;
|
||||
border: 1px solid rgba(255,255,255,0.12);
|
||||
position: relative;
|
||||
min-height: 170px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(135deg, #0d1b2a 0%, #1a2a40 50%, #101820 100%);
|
||||
}
|
||||
|
||||
.shuttle-card-bg {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
/* Overlay oscuro base (compacto) */
|
||||
.shuttle-card::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(
|
||||
to top,
|
||||
rgba(0, 0, 0, 0.93) 0%,
|
||||
rgba(0, 0, 0, 0.65) 55%,
|
||||
rgba(0, 0, 0, 0.30) 100%
|
||||
);
|
||||
z-index: 1;
|
||||
transition: background 0.4s ease;
|
||||
}
|
||||
|
||||
/* Cuando está expandida, reforzar el overlay inferior */
|
||||
.shuttle-card.expanded {
|
||||
border-color: #FEE715;
|
||||
box-shadow: 0 0 0 2px #FEE715, 0 24px 50px rgba(0, 0, 0, 0.7);
|
||||
z-index: 60;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.shuttle-card.expanded::before {
|
||||
background: linear-gradient(
|
||||
to top,
|
||||
rgba(0, 0, 0, 0.97) 0%,
|
||||
rgba(0, 0, 0, 0.80) 45%,
|
||||
rgba(0, 0, 0, 0.40) 100%
|
||||
);
|
||||
}
|
||||
|
||||
/* Todos los hijos van sobre el overlay */
|
||||
.shuttle-main-info,
|
||||
.shuttle-details {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
padding: 18px 20px;
|
||||
}
|
||||
|
||||
.shuttle-main-info {
|
||||
padding-bottom: 14px;
|
||||
}
|
||||
|
||||
/* Fila superior: badge empresa + precio */
|
||||
.shuttle-header-mini {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.company-badge {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
background: rgba(0, 0, 0, 0.60);
|
||||
color: #FEE715;
|
||||
padding: 5px 11px;
|
||||
border-radius: 10px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 800;
|
||||
border: 1px solid rgba(254, 231, 21, 0.45);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
text-shadow: 0 1px 4px rgba(0,0,0,0.8);
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.company-badge .material-icons {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.price-pill {
|
||||
background: #FEE715;
|
||||
color: #101820;
|
||||
padding: 5px 11px;
|
||||
border-radius: 10px;
|
||||
font-weight: 900;
|
||||
font-size: 1rem;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 1px;
|
||||
box-shadow: 0 4px 12px rgba(254, 231, 21, 0.35);
|
||||
}
|
||||
|
||||
.price-pill .currency {
|
||||
font-size: 0.8rem;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.price-pill .amount {
|
||||
font-size: 1rem;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.price-pill-label {
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
margin-left: 1px;
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
/* Ruta origen → destino */
|
||||
.shuttle-route-compact {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 900;
|
||||
color: #ffffff;
|
||||
text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.6);
|
||||
margin-bottom: 14px;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.route-text {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.route-arrow {
|
||||
color: #FEE715;
|
||||
font-size: 20px;
|
||||
flex-shrink: 0;
|
||||
filter: drop-shadow(0 0 4px rgba(254,231,21,0.6));
|
||||
}
|
||||
|
||||
/* Fila inferior: tipo vehículo + expand arrow */
|
||||
.shuttle-tags {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.vehicle-tag-mini {
|
||||
padding: 5px 10px;
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
backdrop-filter: blur(6px);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
border-radius: 8px;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: #ffffff;
|
||||
text-shadow: 0 1px 4px rgba(0,0,0,0.8);
|
||||
border: 1px solid rgba(255, 255, 255, 0.20);
|
||||
}
|
||||
|
||||
.vehicle-tag-mini .material-icons {
|
||||
font-size: 15px;
|
||||
color: #FEE715;
|
||||
}
|
||||
|
||||
.expand-indicator {
|
||||
color: #FEE715;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
filter: drop-shadow(0 0 4px rgba(254,231,21,0.5));
|
||||
}
|
||||
|
||||
/* =============================================
|
||||
CONTENIDO EXPANDIDO
|
||||
============================================= */
|
||||
.shuttle-details {
|
||||
padding-top: 0;
|
||||
animation: slideDown 0.3s ease-out;
|
||||
}
|
||||
|
||||
@keyframes slideDown {
|
||||
from { opacity: 0; transform: translateY(-8px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
/* Separador dashed */
|
||||
.shuttle-separator {
|
||||
height: 1px;
|
||||
background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
|
||||
margin: 0 20px 16px;
|
||||
}
|
||||
|
||||
.shuttle-body {
|
||||
padding: 0 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.info-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.info-row .material-icons {
|
||||
color: #FEE715;
|
||||
font-size: 22px;
|
||||
flex-shrink: 0;
|
||||
filter: drop-shadow(0 0 4px rgba(254,231,21,0.4));
|
||||
}
|
||||
|
||||
.info-row .label {
|
||||
font-size: 0.65rem;
|
||||
color: rgba(255, 255, 255, 0.55);
|
||||
margin: 0;
|
||||
text-transform: uppercase;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
.info-row .value {
|
||||
font-size: 0.95rem;
|
||||
color: #ffffff;
|
||||
margin: 2px 0 0;
|
||||
font-weight: 700;
|
||||
text-shadow: 0 1px 6px rgba(0,0,0,0.9);
|
||||
}
|
||||
|
||||
/* ---- Bloque de precios ---- */
|
||||
.price-block {
|
||||
padding: 14px 20px;
|
||||
background: rgba(0, 0, 0, 0.40);
|
||||
border-top: 1px solid rgba(255,255,255,0.08);
|
||||
border-bottom: 1px solid rgba(255,255,255,0.08);
|
||||
margin-bottom: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.price-row-main {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.price-amount-big {
|
||||
font-size: 2rem;
|
||||
font-weight: 900;
|
||||
color: #FEE715;
|
||||
text-shadow: 0 0 20px rgba(254,231,21,0.4), 0 2px 8px rgba(0,0,0,0.9);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.price-label-big {
|
||||
font-size: 0.85rem;
|
||||
color: rgba(255,255,255,0.75);
|
||||
font-weight: 600;
|
||||
text-shadow: 0 1px 4px rgba(0,0,0,0.8);
|
||||
}
|
||||
|
||||
.price-row-secondary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.price-icon-secondary {
|
||||
font-size: 16px;
|
||||
color: rgba(255,255,255,0.55);
|
||||
}
|
||||
|
||||
.price-amount-secondary {
|
||||
font-size: 1rem;
|
||||
font-weight: 800;
|
||||
color: rgba(255,255,255,0.85);
|
||||
text-shadow: 0 1px 4px rgba(0,0,0,0.8);
|
||||
}
|
||||
|
||||
.price-label-secondary {
|
||||
font-size: 0.78rem;
|
||||
color: rgba(255,255,255,0.55);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ---- Botones de contacto ---- */
|
||||
.contact-buttons {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
padding: 0 20px 20px;
|
||||
}
|
||||
|
||||
.contact-btn {
|
||||
flex: 1;
|
||||
height: 52px;
|
||||
border-radius: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.btn-call {
|
||||
background: rgba(255, 255, 255, 0.10);
|
||||
color: #ffffff;
|
||||
border: 1.5px solid rgba(255, 255, 255, 0.30);
|
||||
backdrop-filter: blur(6px);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
text-shadow: 0 1px 4px rgba(0,0,0,0.6);
|
||||
}
|
||||
|
||||
.btn-call:hover {
|
||||
background: rgba(255, 255, 255, 0.18);
|
||||
border-color: rgba(255, 255, 255, 0.50);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.btn-call .material-icons { font-size: 20px; }
|
||||
|
||||
.btn-whatsapp {
|
||||
background: #25d366;
|
||||
color: #ffffff;
|
||||
box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
|
||||
}
|
||||
|
||||
.btn-whatsapp:hover {
|
||||
background: #1ebe5a;
|
||||
box-shadow: 0 8px 24px rgba(37, 211, 102, 0.50);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.btn-whatsapp .material-icons { font-size: 20px; }
|
||||
|
||||
/* Original Styles */
|
||||
.taxi-view {
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
padding: 0 0 150px;
|
||||
}
|
||||
|
||||
/* Tarjetas claras y elegantes */
|
||||
.filter-card,
|
||||
.taxi-card-new {
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.header-main {
|
||||
padding: 24px 16px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.brand-title {
|
||||
color: var(--header-text);
|
||||
font-size: 1.5rem;
|
||||
font-weight: 800;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.filters-container {
|
||||
padding: 0 16px 24px;
|
||||
}
|
||||
|
||||
.filter-card {
|
||||
background: var(--card-bg);
|
||||
border-radius: 20px;
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border: 1px solid var(--border-color);
|
||||
box-shadow: 0 2px 8px var(--shadow);
|
||||
}
|
||||
|
||||
.selectors-side {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.select-group {
|
||||
background: var(--bg-secondary);
|
||||
border: 1.5px solid #fee715;
|
||||
border-radius: 12px;
|
||||
padding: 8px 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.select-group .material-icons {
|
||||
color: #fee715;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.select-group select {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--text-primary);
|
||||
width: 100%;
|
||||
font-size: 0.9rem;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.select-group select option {
|
||||
background: var(--card-bg);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.lang-toggle-side {
|
||||
padding-left: 20px;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.lang-text {
|
||||
color: var(--text-primary);
|
||||
font-weight: 700;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Custom Checkbox */
|
||||
.checkbox-container {
|
||||
display: block;
|
||||
position: relative;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.checkbox-container input {
|
||||
visibility: hidden;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.checkmark {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 28px;
|
||||
width: 28px;
|
||||
background-color: transparent;
|
||||
border: 2px solid #fee715;
|
||||
border-radius: 4px;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.checkbox-container input:checked ~ .checkmark {
|
||||
background-color: #fee715;
|
||||
}
|
||||
|
||||
.checkmark:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.checkbox-container input:checked ~ .checkmark:after {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.checkbox-container .checkmark:after {
|
||||
left: 9px;
|
||||
top: 5px;
|
||||
width: 6px;
|
||||
height: 12px;
|
||||
border: solid #101820;
|
||||
border-width: 0 3px 3px 0;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
/* Grid & Cards */
|
||||
.taxis-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
|
||||
gap: 24px;
|
||||
padding: 24px 0;
|
||||
}
|
||||
|
||||
.taxi-card-new {
|
||||
background: var(--card-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
border-radius: 20px;
|
||||
padding: 16px;
|
||||
border: 1px solid var(--border-color);
|
||||
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.taxi-card-new:hover {
|
||||
transform: translateY(-8px);
|
||||
border-color: var(--active-color);
|
||||
box-shadow: 0 20px 40px rgba(0,0,0,0.4);
|
||||
}
|
||||
|
||||
.card-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.driver-avatar {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
background: var(--bg-secondary);
|
||||
border: 2px solid var(--border-color);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.driver-avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.driver-info h3 {
|
||||
margin: 0 0 2px;
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.rating-stars {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.rating-stars .material-icons {
|
||||
color: var(--active-color);
|
||||
font-size: 18px;
|
||||
filter: drop-shadow(0 0 5px rgba(254, 231, 21, 0.5));
|
||||
}
|
||||
|
||||
.fav-icon-wrapper {
|
||||
position: absolute;
|
||||
top: -4px;
|
||||
right: -4px;
|
||||
}
|
||||
|
||||
.card-mid {
|
||||
padding: 12px 16px;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.contact-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.ph-icon {
|
||||
color: var(--active-color);
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.phone-num {
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.call-btn-main {
|
||||
width: 100%;
|
||||
padding: 18px;
|
||||
background: linear-gradient(135deg, #fee715 0%, #facc15 100%);
|
||||
color: #101820;
|
||||
border: none;
|
||||
border-radius: 16px;
|
||||
font-size: 1rem;
|
||||
font-weight: 900;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 10px 20px rgba(254, 231, 21, 0.15);
|
||||
}
|
||||
|
||||
.call-btn-main:hover {
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 15px 30px rgba(254, 231, 21, 0.25);
|
||||
}
|
||||
|
||||
.state-container, .empty-state {
|
||||
padding: 100px 24px;
|
||||
text-align: center;
|
||||
background: var(--header-bg);
|
||||
border-radius: 32px;
|
||||
border: 2px dashed var(--border-color);
|
||||
}
|
||||
|
||||
.state-container .material-icons, .empty-state .material-icons {
|
||||
font-size: 64px;
|
||||
margin-bottom: 24px;
|
||||
color: var(--active-color);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.spin {
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.taxis-grid, .shuttles-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user