/* ============ Modern Logistics Row (Premium Style) ============ */

/* Main Card */
.log-row {
    display: grid;
    /* 4 Cols: Date | Route (Expanded) | Specs | Price */
    grid-template-columns: 80px 1fr 180px 180px;
    gap: 0;
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.log-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 144, 96, 0.2);
}

/* Decoration Line (Left) */
.log-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.log-row:hover::before {
    opacity: 1;
}

/* --- Col 1: Date --- */
.log-date-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border-right: 1px solid #f1f5f9;
    text-align: center;
}

.date-day {
    font-size: 1.25rem;
    font-weight: 800;
    color: #334155;
    line-height: 1;
    margin-bottom: 4px;
}

.date-week {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- Col 2: Route --- */
.log-route-col {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.route-line-pro {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.city-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flag-icon {
    font-size: 1.4rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.city-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.arrow-pro {
    color: #cbd5e1;
    font-size: 1.2rem;
    padding: 0 8px;
}

/* Tags Line */
.tags-line {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.tag-pill {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.tag-type {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.tag-gray {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.tag-verified {
    font-size: 0.75rem;
    color: #166534;
    background: #f0fdf4;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- Col 3: Specs --- */
.log-specs-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 24px;
    border-left: 1px dashed #e2e8f0;
}

.spec-val {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-val svg {
    color: #94a3b8;
    width: 16px;
    height: 16px;
}

/* --- Col 4: Price & Action --- */
.log-price-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 16px 24px;
    background: #fcfcfc;
    border-left: 1px solid #f1f5f9;
}

.price-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.btn-action-pro {
    padding: 8px 20px;
    border-radius: 8px;
    background: white;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 144, 96, 0.05);
}

.btn-action-pro:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 144, 96, 0.25);
    transform: translateY(-1px);
}

.login-alert {
    color: #ef4444;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: help;
    margin-left: 8px;
}


/* --- Responsive --- */
/* --- Responsive (Mobile App Style) --- */
@media (max-width: 900px) {
    .log-row {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        /* Softer shadow */
    }

    .log-row::before {
        width: 4px;
        border-radius: 4px 0 0 4px;
        opacity: 1;
    }

    /* Date Row */
    .log-date-col {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        background: transparent;
        padding: 0;
        border: none;
        justify-content: flex-start;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 10px;
        margin-bottom: 4px;
    }

    .date-day {
        font-size: 1.1rem;
    }

    .date-week {
        font-size: 0.9rem;
        font-weight: 500;
        color: #94a3b8;
    }

    .date-week::before {
        content: '•';
        margin-right: 6px;
        opacity: 0.5;
    }

    /* Route Section (Timeline Style) */
    .log-route-col {
        padding: 0;
        border: none;
        background: transparent;
        align-items: flex-start;
        position: relative;
    }

    .route-line-pro {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        /* Space between cities */
        margin-bottom: 10px;
        position: relative;
        padding-left: 14px;
        /* Space for timeline line */
        width: 100%;
    }

    /* Vertical Line */
    .route-line-pro::before {
        content: '';
        position: absolute;
        left: 5px;
        /* Center of the dot */
        top: 8px;
        bottom: 8px;
        width: 2px;
        background: #e2e8f0;
        /* Line color */
        z-index: 0;
    }

    .city-group {
        position: relative;
        z-index: 1;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Dots for timeline */
    .city-group::before {
        content: '';
        position: absolute;
        left: -19px;
        /* Position relative to padding-left */
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: white;
        border: 2px solid var(--primary);
        /* Origin dot */
        box-shadow: 0 0 0 2px white;
        /* Outline to cut line */
    }

    /* Destination Dot different color? */
    .city-group:last-child::before {
        border-color: #ef4444;
        /* Red for destination */
        background: white;
    }

    .arrow-pro {
        display: none;
    }

    .city-group::after {
        display: none;
    }

    .flag-icon {
        font-size: 1.2rem;
        /* Slightly smaller on mobile */
    }

    .city-text {
        font-size: 1.1rem;
    }

    /* Specs */
    .log-specs-col {
        padding: 0;
        border: none;
        flex-direction: row;
        gap: 12px;
        padding-top: 4px;
        flex-wrap: wrap;
        background: transparent;
    }

    .log-specs-col .spec-val {
        background: #f8fafc;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.9rem;
        border: 1px solid #f1f5f9;
    }

    /* Tags */
    .tags-line {
        margin-top: 4px;
        gap: 6px;
        padding-left: 14px;
        /* Align with text */
    }

    /* Footer (Price & Button) */
    .log-price-col {
        padding: 0;
        border: none;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        align-items: center;
        border-top: 1px solid #f1f5f9;
        padding-top: 12px;
        margin-top: 8px;
        background: transparent;
    }

    .price-val {
        margin-bottom: 0;
        font-size: 1.3rem;
        /* Larger price */
    }

    .btn-action-pro {
        padding: 10px 24px;
        background: var(--primary);
        color: white;
        /* Solid button for better CTA */
        border: none;
        font-size: 0.95rem;
    }
}