/* =========================================================
   ALFA TRANSPORTES - RASTREAMENTO
   Arquivo: static/website/css/rastreamento.css
   ========================================================= */

   .rastreio-page {
    background: #ffffff;
    color: var(--alfa-neutra-clara);
}

/* =========================================================
   HERO
   ========================================================= */

.rastreio-hero {
    padding: 2.5rem 0 1.25rem;
    background: #ffffff;
}

.rastreio-hero-card {
    padding: 2rem;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

.rastreio-hero-success {
    border-color: rgba(25, 135, 84, .18);
}

.rastreio-hero-warning {
    border-color: rgba(252, 182, 18, .35);
}

.rastreio-info-card,
.rastreio-map-card,
.rastreio-route-card {
    height: 100%;
    padding: 1.5rem;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.rastreio-map-card,
.rastreio-route-card {
    background: var(--alfa-background);
}

.rastreio-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
    color: var(--alfa-destaque);
    font-size: var(--fs-xs, .76rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.rastreio-head h1 {
    margin: 0;
    color: var(--alfa-neutra-escura);
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.rastreio-status {
    margin: .85rem 0 0;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: capitalize;
}

.rastreio-status-success {
    color: #198754;
}

.rastreio-status-warning {
    color: #b77900;
}

.rastreio-info-list {
    list-style: none;
    display: grid;
    gap: .75rem;
    padding: 0;
    margin: 1.25rem 0 0;
}

.rastreio-info-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem;
    border-radius: 18px;
    background: var(--alfa-background);
    border: 1px solid rgba(15, 23, 42, .08);
}

.rastreio-info-list i {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: var(--alfa-destaque);
    font-size: 1.05rem;
}

.rastreio-info-list span {
    display: grid;
    gap: .15rem;
    color: var(--alfa-neutra-escura);
    line-height: 1.35;
}

.rastreio-info-list strong {
    color: var(--alfa-neutra-escura);
    font-weight: 700;
}

/* =========================================================
   MAPA / IMAGEM
   ========================================================= */

.rastreio-map-header,
.rastreio-route-header {
    margin-bottom: 1rem;
}

.rastreio-map-header span,
.rastreio-route-header span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .35rem;
    color: var(--alfa-destaque);
    font-size: var(--fs-xs, .76rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.rastreio-map-header strong,
.rastreio-route-header strong {
    display: block;
    color: var(--alfa-neutra-escura);
    font-size: var(--fs-lg, 1.12rem);
    font-weight: 700;
    line-height: 1.25;
}

.rastreio-map {
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 24px;
    background: #eef0f3;
    border: 1px solid rgba(15, 23, 42, .08);
}

.rastreio-map-empty {
    min-height: 100%;
    display: grid;
    place-items: center;
    color: var(--alfa-neutra-clara);
    font-weight: 700;
}

.leaflet-control-attribution {
    display: none !important;
}

.rastreio-route-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, .08);
}

/* =========================================================
   TIMELINE
   ========================================================= */

.rastreio-timeline-section {
    padding: 1.25rem 0 4rem;
    background: #ffffff;
}

.rastreio-timeline-card {
    padding: 1.5rem;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.rastreio-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rastreio-timeline-header span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .35rem;
    color: var(--alfa-destaque);
    font-size: var(--fs-xs, .76rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.rastreio-timeline-header h2 {
    margin: 0;
    color: var(--alfa-neutra-escura);
    font-size: var(--fs-xl, 1.32rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.rastreio-timeline-header p {
    margin: .45rem 0 0;
    color: var(--alfa-neutra-clara);
    line-height: 1.5;
}

.rastreio-timeline {
    display: grid;
    gap: .75rem;
}

.rastreio-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1rem;
    border-radius: 20px;
    background: var(--alfa-background);
    border: 1px solid rgba(15, 23, 42, .08);
}

.rastreio-timeline-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #ffffff;
    background: #6b7280;
    font-size: 1.15rem;
}

.rastreio-timeline-success {
    background: #198754;
}

.rastreio-timeline-info {
    background: #0d6efd;
}

.rastreio-timeline-default {
    background: #6b7280;
}

.rastreio-timeline-content {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .25rem;
}

.rastreio-timeline-content strong {
    color: var(--alfa-neutra-escura);
    font-weight: 700;
    line-height: 1.35;
}

.rastreio-timeline-content span {
    color: var(--alfa-neutra-clara);
    font-size: var(--fs-sm, .84rem);
    white-space: nowrap;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 991.98px) {
    .rastreio-hero {
        padding: 1.5rem 0 .75rem;
    }

    .rastreio-hero-card,
    .rastreio-info-card,
    .rastreio-map-card,
    .rastreio-route-card,
    .rastreio-timeline-card {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .rastreio-map,
    .rastreio-route-img {
        height: 300px;
        border-radius: 20px;
    }
}

@media (max-width: 767.98px) {
    .rastreio-head h1 {
        font-size: 1.55rem;
    }

    .rastreio-status {
        font-size: 1.2rem;
    }

    .rastreio-map,
    .rastreio-route-img {
        height: 260px;
    }

    .rastreio-timeline-card {
        padding: 1rem;
        border-radius: 22px;
    }

    .rastreio-timeline-content {
        flex-direction: column;
        gap: .35rem;
    }

    .rastreio-timeline-content span {
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .rastreio-hero-card,
    .rastreio-info-card,
    .rastreio-map-card,
    .rastreio-route-card,
    .rastreio-timeline-card {
        border-radius: 20px;
    }

    .rastreio-map,
    .rastreio-route-img {
        height: 230px;
        border-radius: 18px;
    }
}
